Skip to content

Add clear selection button and more names to combobox example#202

Merged
GavinJoyce merged 1 commit intomasterfrom
gj/combobox-clear-button
Feb 19, 2026
Merged

Add clear selection button and more names to combobox example#202
GavinJoyce merged 1 commit intomasterfrom
gj/combobox-clear-button

Conversation

@GavinJoyce
Copy link
Copy Markdown
Owner

Summary

Add an X clear button to the combobox-basic example and expand the people list from 5 to 20 names.

Changes

  • Added a clear (X) button between the input and chevron button that resets the selection
  • Expanded the PEOPLE array from 5 to 20 names with diverse entries
  • Added clearSelection action that sets selectedPerson to null and resets the filter

Testing

  • Visit /combobox/combobox-basic
  • Verify 20 names appear in the dropdown
  • Select a person, then click the X button to clear the selection
  • Verify the X button only appears when a person is selected

@GavinJoyce GavinJoyce force-pushed the gj/combobox-clear-button branch from 8792bf4 to 2539c0c Compare February 19, 2026 10:51
@GavinJoyce GavinJoyce merged commit 8ea8ab9 into master Feb 19, 2026
12 checks passed
@GavinJoyce GavinJoyce deleted the gj/combobox-clear-button branch February 19, 2026 10:57
@GavinJoyce GavinJoyce added the enhancement New feature or request label Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant