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

SelectMenu ability to clear search string #883

Closed
acidjazz opened this issue Oct 28, 2023 · 2 comments · Fixed by #968
Closed

SelectMenu ability to clear search string #883

acidjazz opened this issue Oct 28, 2023 · 2 comments · Fixed by #968
Labels
enhancement New feature or request

Comments

@acidjazz
Copy link
Contributor

Description

Basically I want to avoid this situation:

clear-search.mov

Additional context

It would be nice to clear search for when the menu is destroyed and during my flow of creation.

@acidjazz acidjazz added the enhancement New feature or request label Oct 28, 2023
@neilmerton
Copy link

Thanks for creating this, I was hoping for this exact option, however it doesn't seem possible out the box.

@neilmerton
Copy link

To add to this, what would be ideal is if the value of search is expose to the USelectMenu component, and then it could be manipulated (cleared or changed) from the USelectMenu component.

My use-case is I'm hoping to be able to utilise the USelectMenu to create an "input tag" component. The items for the USelectMenu would be any pre-existing tags. When the user searches for a tag, and it doesn't exist, they could create the new tag by pressing 'Enter'. What I'd like to be able to do is to "sluggify" the output of the new tag, and once they pressed 'Enter' then clear the value of search for that the full list of tags (including the newly created tag) is then shown to the user.

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
2 participants