-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Warning in console when using more than one Popover.Button inside Popover.Panel #2143
Comments
Hey! Thank you for your bug report! This should be fixed by #2146, and will be available in the next release. You can already try it (in a few minutes) using |
This false positive warning of multiple |
@michaelcais thank you, I'll take care of that! |
@michaelcais Sorry about that! This should be fixed by #2333, and will be available in the next release. You can already try it using:
|
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.7.7
What browser are you using?
Chrome
Reproduction URL
https://codesandbox.io/s/gracious-sinoussi-nlzl6e?file=/src/App.js
Describe your issue
When using more than one
<Popover.Button />
inside<Popover.Panel />
to close the panel after click, I see the following warning in the console:Since using multiple
<Popover.Button />
inside<Popover.Panel />
is a supported use case according to the docs, this seems to be an error. I'd expect the warning is only shown when using more than one<Popover.Button />
outside of<Popover.Panel />
because that use case is not supported.After a check-in in Discord, it appears the current behaviour is indeed not as intended.
Related GitHub Discussion Thread
The text was updated successfully, but these errors were encountered: