Skip to content

Commit 800b849

Browse files
authored
Merge pull request #425 from MaximeOh/master
Fix the class attribute when the field has add-ons
2 parents 8f2d09d + 68157ed commit 800b849

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/View/Widget/InputGroupTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected function _withInputGroup(array $data, ContextInterface $context): stri
7373
$errorClass &&
7474
$context->hasError($data['fieldName'])
7575
) {
76+
$attrs['class'] = (array)$attrs['class'];
7677
$attrs['class'][] = $errorClass;
7778
}
7879

0 commit comments

Comments
 (0)