Repository navigation
Release v2.12.0
v2.12.0: opt-in combobox Stimulus peer
Changelog
Added
- Opt-in combobox Stimulus peer (
src/Resources/assets/stimulus-peers/combobox_controller.ts, identifiercombobox): searchable picker over static server-rendered options that writes the chosendata-valueinto a (hidden) input. WAI-ARIA 1.2 editable combobox with list autocomplete (fills missingrole/aria-expanded/aria-controls/aria-autocomplete/aria-selected/ ids,aria-activedescendantfor the active option), keyboard support (ArrowDown/ArrowUpwith wrap,Alt+ArrowDown,Enter,Escape,Tab), close on outside pointer,combobox:changeevent. Copy is neutral and configurable:requiredMessagevalue → querydata-required-message→"Please select an option.". Valuesopen,requiredMessage,selectedClass,activeClass; targetsquery,value,list,option,empty. Not built or registered by the bundle — hosts import it into their own Stimulus app. Ported from Symfony Beacon (spec 138 FR-010); fixes the host version's list reopening after a selection and the required message being cleared by the follow-up focus. See Usage — Combobox andspecs/003-combobox-peer.
Changed
- Tooling:
@hotwired/stimulusadded as a dev dependency (Vitest /tsconly); Vitest andtsconfig.jsonnow includesrc/Resources/assets/stimulus-peers/(coverage gate 100%).
Full Changelog: v2.11.0...v2.12.0