Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(combobox): add resetSearchTermOnSelect param to ComboboxRoot #1257

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

hrynevychroman
Copy link
Contributor

I added the clearSearchTermOnSelect prop so that the search term will not automatically clear when Combobox selects triggers. Maybe users will want to select multiple values based on the same search fields

Original Issue: unovue/shadcn-vue#709.

Video example:

radix-vue-combobox-clear-search-term.mp4

Docs updated too:
image

@hrynevychroman
Copy link
Contributor Author

I managed to rename clearSearchTermOnSelect to resetSearchTermOnSelect as we already have resetSearchTermOnBlur which will be more intuitive 🙂

commit: c2733af (#1257)

@zernonia
Copy link
Member

zernonia commented Sep 3, 2024

Cool addition @romanhrynevych . Can you check the failing test? 😁

@hrynevychroman
Copy link
Contributor Author

@zernonia interesting test case, thanks for such approach, updated in 4e8e420 (#1257) 🙌

@hrynevychroman hrynevychroman changed the title feat(combobox): add clearSearchTermOnSelect param to ComboboxRoot feat(combobox): add resetSearchTermOnSelect param to ComboboxRoot Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants