We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal repro: https://codesandbox.io/s/onclose-duplicate-bug-lwvrh
onClose
onClose is called twice: once for the mouse event, once without an evt (when isOpen is flagged to false)
onClose is only called for the mouseEvent, and no onClose is called for when isOpen is changed
isOpen
The text was updated successfully, but these errors were encountered:
What are you using onClose for in controlled mode? Is onInteraction not sufficient? Note that this is also a "bug" for Popover, so it's not a regression: https://codesandbox.io/s/onclose-duplicate-bug-forked-rgyd9
onInteraction
Popover
Sorry, something went wrong.
Ah good call, I didn't realized onInteraction would be the better hook to use here. This is fine to close out then
No branches or pull requests
Environment
Code Sandbox
Minimal repro: https://codesandbox.io/s/onclose-duplicate-bug-lwvrh
Steps to reproduce
onClose
functionActual behavior
onClose is called twice: once for the mouse event, once without an evt (when isOpen is flagged to false)
Expected behavior
onClose is only called for the mouseEvent, and no onClose is called for when
isOpen
is changedPossible solution
The text was updated successfully, but these errors were encountered: