-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Missing options when using nullable
and the escape key
#2433
Comments
I got the same issue. It could be easily checked at the TailwindUI playground - https://tailwindui.com/components/application-ui/navigation/command-palettes. |
Another, possibly related, bug is that |
Hey, thank you for this bug report! 🙏 This should be fixed by #2660, and will be available in the next release. You can already try it using:
I've updated the CodeSandbox with the latest insiders version: https://codesandbox.io/s/sharp-forest-sp5q6p?file=/src/App.js. I had to make an adjusted where the Another thing you will notice is that the list won't show once you focus in again, this is because the combobox was closed when pressing escape. However, opening the combobox and using your arrow keys should show all the options because now we properly reset the You will also notice that the bug reported by @ivan-kleshnin is fixed. Right now it doesn't matter how the input is cleared, if it is cleared then the Thanks! |
What package within Headless UI are you using?
@headlessui/react - Combobox
What version of that package are you using?
1.7.14
What browser are you using?
Chrome
Reproduction URL
Describe your issue
When using
nullable
the input field seems to remember the last query when you type a few characters then press escape.ESC
Result
Expected
Not actually 100% sure if this expected behaviour is correct, but thought I'd raise a ticket to see what others thought.
The text was updated successfully, but these errors were encountered: