Combobox input: Clear search query in multimode #2569
Unanswered
reactSingh
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am working with a custom implementation of the combobox. My question is as follows.
Using Combobox in multimode. type in the search query, my options list is narrowed down by the search query provided, I select the desired option by hitting enter (or the first one if there are more than one matches), my selection is rendered BUT the search query is not cleared from Combobox.
I have tried re-rendering the component based on query change, as the query is being set to an empty string and I am guessing this is handled under the hood by the component.
In the screen grab attached, I am looking to clear "cost"
Any Ideas, direction to explore would be much appreciated
Thank you!
<img width="532" alt="Screenshot 2023-06-30 at 1 52 06 PM"

src="https://github.com/tailwindlabs/headlessui/assets/138241580/02294056-1d10-4f24-b509-2db65dd48a96">
Beta Was this translation helpful? Give feedback.
All reactions