jqh 4 năm trước cách đây
mục cha
commit
4d48398e37
1 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 6
      src/Form/Field.php

+ 1 - 6
src/Form/Field.php

@@ -967,12 +967,7 @@ class Field implements Renderable
      */
     public function getElementClass()
     {
-        return array_values(
-            array_unique(
-                $this->elementClass,
-                $this->getDefaultElementClass()
-            )
-        );
+        return array_values(array_unique(array_merge($this->elementClass, $this->getDefaultElementClass())));
     }
 
     /**