-
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
multiple dropdowns menus on screen, wrong one is focused #166
Comments
I think this is related to this logic: https://github.com/tailwindlabs/headlessui/blob/develop/packages/%40headlessui-react/src/components/menu/menu.tsx#L235 Which makes sense, when a user clicks out of the dropdown, thus closing it. I'd be happy to make a PR for this, just not sure how to check if another dropdown got open (to skip the focusing part). |
I can replicate this issue as well. Good catch @yurique! |
this one seems to be very related: #114 |
Hey! Thank you for your bug report! Can you test if it still happens with |
Hey @RobinMalfait - that looks to have fixed it for me! 🎉 |
@RobinMalfait I'm getting this error with
Wasn't sure if I should log a separate issue, since this is a |
@mryechkin The API changed of the Transition component but I didn't document it yet. We made sure that the API is consistent between all components we use. I will make sure to document and release a new version ASAP. The TL;DR is this:
|
https://codesandbox.io/s/headlessuireact-menu-example-forked-ejnc9
When there are multiple dropdown menus on the screen:
open the first dropdown
open the second one -- the first one gets closed, but the first button receives the focus
try arrow keys on the keyboard -- the first dropdown gets open and receives the keystrokes; the second dropdown remains open
The text was updated successfully, but these errors were encountered: