diff --git a/src/LiveComponent/CHANGELOG.md b/src/LiveComponent/CHANGELOG.md index 832c31885f4..a05311bbb0a 100644 --- a/src/LiveComponent/CHANGELOG.md +++ b/src/LiveComponent/CHANGELOG.md @@ -3,6 +3,7 @@ ## 2.25.0 - Add support for [Symfony UID](https://symfony.com/doc/current/components/uid.html) hydration/dehydration +- `ComponentWithFormTrait` now correctly checks for a `TranslatableInterface` placeholder for ` (not a radio/checkbox) && !$child->vars['multiple'] // is not multiple - && !\is_string($child->vars['placeholder']) // has no placeholder (empty string is valid) + && !\is_string($child->vars['placeholder']) // has no placeholder (empty string is valid) + && !$child->vars['placeholder'] instanceof TranslatableInterface // has no placeholder (translatable interface is valid) ) { $choices = $child->vars['preferred_choices'] ?: $child->vars['choices']; // preferred_choices has precedence, as they rendered before regular choices do {