-
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
[insiders] Focus trapping broken with anchored, non-modal Listbox.Options
inside Transition
inside Dialog
#3107
Comments
benface
changed the title
[insiders] Focus trapping broken with
[insiders] Focus trapping broken with anchored Apr 18, 2024
Listbox
inside Transition
inside Dialog
Listbox.Options
inside Transition
inside Dialog
benface
changed the title
[insiders] Focus trapping broken with anchored
[insiders] Focus trapping broken with anchored, non-modal Apr 18, 2024
Listbox.Options
inside Transition
inside Dialog
Listbox.Options
inside Transition
inside Dialog
EDIT: I opened a new issue for it. |
Ugh, sorry @RobinMalfait. 🤦♂️ Just made it public. |
Hey! This should be fixed by #3112, and will be available in the next release. You can already try it using:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
0.0.0-insiders.9f44656
What browser are you using?
Chrome
Reproduction URL
https://codesandbox.io/p/sandbox/amazing-glitter-c7sdrr?file=%2Fsrc%2FApp.tsx
Describe your issue
Using only the keyboard, open the dialog and then the listbox inside it (sorry for the lack of styles). Notice how the options menu is not automatically focused. If you tab, the link after the listbox gets focused, and if you tab again, then the menu gets focused and the focus is trapped.
Notice that the issue does NOT happen if you:
anchor
ormodal
props fromListbox.Options
Listbox.Options
in aTransition
Listbox
in aDialog
The text was updated successfully, but these errors were encountered: