Skip to content

Commit 3641c00

Browse files
committed
Only add the choices controller attribute once
1 parent 77cc4f6 commit 3641c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Widget/ComponentStyleSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function generate()
217217
if(!!$objStyleGroup->chosen)
218218
{
219219
$strClass .= ' tl_chosen';
220-
$this->arrAttributes['data-controller'] = trim(($this->arrAttributes['data-controller'] ?? '') . ' contao--choices');
220+
$this->arrAttributes['data-controller'] = 'contao--choices';
221221
}
222222

223223
// create collection

0 commit comments

Comments
 (0)