Repository navigation
v0.2.99
v0.2.99 — Small update adding combobox “clear” behavior and parity tests
@data-slot/combobox
- ✨ Implemented clear-button behavior: clicking the combobox clear button now clears the selected value, clears the input text, and focuses the input. When the combobox is open, clearing preserves the open state and re-applies filtering/positioning so the list stays in sync.
- ✨ Improved button ergonomics: the clear button is auto-assigned type="button" when missing to avoid accidental form submissions.
- 🐛 Clear action respects disabled/readOnly state and aria-disabled, preventing clears when the control is not interactive.
- ✨ Parity/test coverage added:
- Fixture now includes a clear button.
- New parity actions (clickClear) and assertions (expectInputFocused) were added.
- New parity scenario verifies that clicking clear focuses the input, clears the value, and does not auto-open when the combobox is closed — and preserves open state when already open.
- No breaking changes.
Commits included: feat(combobox): implement combobox-clear behavior (fbdb324), plus version bump.