Skip to content

Conversation

@RobinMalfait
Copy link
Member

This PR will simplify the Popover component by using the same strategy we applied in the
FocusTrap component.

This uses sentinel DOM nodes instead of keydown event interception and manually trying to focus
the next element. This improves a bunch of subtle bugs because now the browser will handle all of
the Tab related logic. This means that it fixes the following bugs for free:

Fixes: #1215
Fixes: #1140
Fixes: #467

Use `TabSentinel` instead of intercepting the `Tab` keydown events.
@vercel
Copy link

vercel bot commented May 12, 2022

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

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview May 12, 2022 at 10:15PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview May 12, 2022 at 10:15PM (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

2 participants