Repository navigation
Release v2.9.0
Release v2.9.0: explicit placeholders win over convention keys; ChoiceType placeholder semantics
Changelog
Fixed
- Explicit placeholders win over the convention key: a root
placeholderpassed in PHP options (or set in profiledefaults,field_types,by_form) is now applied toattr.placeholdereven whenauto_placeholderis on. Previously the{form}.{field}.placeholderkey was already inattr, so the explicit value was silently ignored. - ChoiceType placeholder semantics: for
ChoiceTypeand its subtypes (EntityType,EnumType,CountryType, UX Autocomplete, custom types whose parent chain reachesChoiceType, detected through the form registry /type_map), the rootplaceholderis kept as the empty-option label instead of being moved toattr.placeholder, andplaceholder: falseis preserved (no empty option; previously it was dropped and Symfony fell back to an empty option / "None" radio). Choice fields no longer get the convention key inattr.placeholder; the generic profile /by_formdefaults.placeholderis not applied to them. - No convention placeholder on checkbox / radio / hidden fields (and subtypes):
auto_placeholderno longer adds a meaninglessattr.placeholderkey to them.
Full Changelog: v2.8.1...v2.9.0