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
Can't stop propagation with useClickAway #249
Comments
Any chance you can make a simple replication of it for me with Codesandbox? |
Here's the replication |
is there any solution for this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a
SideMenu
component, that should be closed when clicking outside of it, and aNavBar
component with a button that toggles theSideMenu
. When theSideMenu
is open and I click the toggle button, two actions are dispatched:sideMenuClosed
andsideMenuToggled
. Basically, theSideMenu
first closes and then immediately re-opens.I've tried doing this, but it didn't help:
The text was updated successfully, but these errors were encountered: