Skip to content

Commit 79b3bbf

Browse files
committedMay 15, 2023
Pass required attribute through from ChoiceType to SelectType
1 parent 872be2e commit 79b3bbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/Type/ChoiceType.php

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function getElement(): Element
4444
'name' => $this->name,
4545
'multiple' => $this->multiple,
4646
'placeholder' => $this->args['placeholder'],
47+
'required' => $this->required,
4748
]);
4849

4950
$select->setForm($this->form);

0 commit comments

Comments
 (0)