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

Only render the FocusSentinel if required in the Tabs component #1493

Merged
merged 2 commits into from May 23, 2022

Conversation

RobinMalfait
Copy link
Collaborator

The Tabs component renders a hidden FocusSentinel in case it needs to capture focus but the
Tabs aren't ready yet. The moment the FocusSentinel receives focus and successfully forwards it
to one of the Tabs, then it removes itself.

However, the the FocusSentinel can also be removed the moment the Tabs themselves are ready.

This PR will make sure that it removes itself the moment the Tabs are ready.

Fixes: #1491

@vercel
Copy link

vercel bot commented May 23, 2022

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

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

Hidden 1px button break layout
1 participant