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

[Bug]: Combobox breaks when selecting a value using the keyboard #3595

Open
SavaCool122 opened this issue Dec 14, 2024 · 0 comments · May be fixed by #3596
Open

[Bug]: Combobox breaks when selecting a value using the keyboard #3595

SavaCool122 opened this issue Dec 14, 2024 · 0 comments · May be fixed by #3596

Comments

@SavaCool122
Copy link

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v2.2.0

What browser are you using?

All

Reproduction URL

https://stackblitz.com/edit/vitejs-vite-coiqswwa?file=src%2FApp.jsx

Describe your issue

When selecting a value using the mouse, the combobox functions as expected. However, if a value is selected using the keyboard (via the Enter key), the programmatic reset no longer works as intended.

CleanShot.2024-12-14.at.14.11.46.mp4
@SavaCool122 SavaCool122 linked a pull request Dec 15, 2024 that will close this issue
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 a pull request may close this issue.

1 participant