File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 3
3
## 2.25.0
4
4
5
5
- Add support for [ Symfony UID] ( https://symfony.com/doc/current/components/uid.html ) hydration/dehydration
6
+ - ` ComponentWithFormTrait ` now correctly checks for a ` TranslatableInterface ` placeholder for ` <select> ` elements
6
7
7
8
## 2.23.0
8
9
Original file line number Diff line number Diff line change 31
31
"symfony/property-access" : " ^5.4.5|^6.0|^7.0" ,
32
32
"symfony/property-info" : " ^5.4|^6.0|^7.0" ,
33
33
"symfony/stimulus-bundle" : " ^2.9" ,
34
- "symfony/translation-contracts" : " ^2.5|^3.0" ,
35
34
"symfony/ux-twig-component" : " ^2.8" ,
36
35
"twig/twig" : " ^3.8.0"
37
36
},
Original file line number Diff line number Diff line change @@ -287,10 +287,8 @@ private function extractFormValues(FormView $formView): array
287
287
)
288
288
&& !$ child ->vars ['expanded ' ] // is a <select> (not a radio/checkbox)
289
289
&& !$ child ->vars ['multiple ' ] // is not multiple
290
- && (
291
- !\is_string ($ child ->vars ['placeholder ' ])
292
- && !$ child ->vars ['placeholder ' ] instanceof TranslatableInterface
293
- ) // has no placeholder (empty string is valid, translatable interface is valid)
290
+ && !\is_string ($ child ->vars ['placeholder ' ]) // has no placeholder (empty string is valid)
291
+ && !$ child ->vars ['placeholder ' ] instanceof TranslatableInterface // has no placeholder (translatable interface is valid)
294
292
) {
295
293
$ choices = $ child ->vars ['preferred_choices ' ] ?: $ child ->vars ['choices ' ]; // preferred_choices has precedence, as they rendered before regular choices
296
294
do {
You can’t perform that action at this time.
0 commit comments