Open quiltingcode opened 1 year ago
The custom hook from the walkthrough does not work in my case, as I have a dropdown menu inside my navbar, which is also affected by the generic click listener, and therefore stops the user from being able to access signin, up and out from within the authentication dropdown menu. Therefore, I have stopped using the UseClickOutsideToggle hook and i've added custom toggle functions to each menu item where action is required to toggle the menu open or closed, leaving it blank for the profile icon dropdown.
The only functionality left remaining not working is if the user clicks outside of the navbar all together. This no longer closes the navbar, but for now I can live with that.
Describe the bug When a navbar item is selected on dropdown mode, the dropdown menu does not automatically close when the page refreshes to the selected item. It stays open. The user has to manually click the burger menu option again to toggle it closed. Bad UX
To Reproduce Steps to reproduce the behavior:
Expected behavior Menu should close on select a navlink
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone and medium sized devices):
Additional context Add any other context about the problem here.