I have a SideMenu component, that should be closed when clicking outside of it, and a NavBar component with a button that toggles the SideMenu. When the SideMenu is open and I click the toggle button, two actions are dispatched: sideMenuClosed and sideMenuToggled. Basically, the SideMenu first closes and then immediately re-opens.
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: