Skip to content

Commit

Permalink
Pass required attribute through from ChoiceType to SelectType
Browse files Browse the repository at this point in the history
  • Loading branch information
andyexeter committed May 15, 2023
1 parent 872be2e commit 79b3bbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Type/ChoiceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function getElement(): Element
'name' => $this->name,
'multiple' => $this->multiple,
'placeholder' => $this->args['placeholder'],
'required' => $this->required,
]);

$select->setForm($this->form);
Expand Down

0 comments on commit 79b3bbf

Please sign in to comment.