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 false positive warning about using multiple <Popover.Button> components #2146

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

RobinMalfait
Copy link
Member

This PR fixes a false positive warning when using multiple <Popover.Button> components. This warning should only happen when you use multipel <Popover.Button> components outside of the <Popover.Panel>, but it also got logged when you used multiple <Popover.Button> components inside the <Popover.Panel> component.

This last bit is allowed, and it is a quick short hand to make closing the <Popover> a bit easier: https://headlessui.com/react/popover#closing-popovers-manually

Fixes: #2143

@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 3:25PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 4, 2023 at 3:25PM (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.

Warning in console when using more than one Popover.Button inside Popover.Panel
1 participant