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

Fix Tab key with non focusable elements in Popover.Panel #2147

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where using your tab key went to the incorrect element if your Popover.Panel doesn't contain any focusable elements.

We made the assumption that the Popover.Panel always had at least 1 focusable element, but that's not always the case. This PR makes sure that you can go to the next/previous elements correctly.

Fixes: #2112

@vercel
Copy link

vercel bot commented Jan 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 4, 2023 at 5:13PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 4, 2023 at 5:13PM (UTC)

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 this pull request may close these issues.

Incorrect tab order in popover panels without focusable content
1 participant