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 nested Popover components not opening #2293

Merged
merged 2 commits into from
Feb 17, 2023
Merged

Fix nested Popover components not opening #2293

merged 2 commits into from
Feb 17, 2023

Conversation

RobinMalfait
Copy link
Member

This PR fixes a regression in the React version where nested popovers don't work anymore.

The issue was the check to know whether we are in a Popover.Panel or not. We also have to check if
we are in the correct panel (this part is important for nested Popovers, and was removed).

Added a test to make sure this won't regress anymore. Also added the same test to the Vue version to
protect against regressions there as well.

Fixes: #2285
Fixes: #2292

@vercel
Copy link

vercel bot commented Feb 17, 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 Feb 17, 2023 at 10:03PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 10:03PM (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.

Nested Popovers no longer work on version 1.7.8 Popover: nested popovers don't open
1 participant