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

Glitch when switching focus from opened menu dropdown to text input #98

Closed
agusterodin opened this issue Oct 14, 2020 · 2 comments · Fixed by #114
Closed

Glitch when switching focus from opened menu dropdown to text input #98

agusterodin opened this issue Oct 14, 2020 · 2 comments · Fixed by #114

Comments

@agusterodin
Copy link

agusterodin commented Oct 14, 2020

I am experiencing what I believe to be unexpected behavior when clicking into an html input while I have a menu dropdown opened. This might occur with other types of html elements as well, I haven't checked.

Steps to reproduce:

  1. Click the dropdown to open it (or open it via keyboard navigation)
  2. Click the html input, notice that focus jumps back to the menu button and you have to click the input again if you want to enter text

https://codesandbox.io/s/headlessuireact-menu-example-forked-2uujc?fontsize=14&hidenavigation=1&theme=dark

MacOS 10.15.6
Google Chrome 85.0.4183.121

@RobinMalfait
Copy link
Member

Hey! Thank you for your bug report!
Much appreciated! 🙏

This is indeed a bug. I'll open a PR that references this issue and it will be fixed in the next version.

@ericclemmons
Copy link

I just noticed the same thing. Confirmed it affects regular <input>s as well.

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.

3 participants