I’ve added the Navigation menu component to one of my projects. On mobile, this menu can be toggled open/closed. It comes with a button to open and close it, but I want to close it on a menu item click or a backdrop click (or tap), for example.
There doesn’t seem to be any variable bound to the component that I could use in a workflow to do that. Am I missing something or is the component missing something?
The issue however is that there is a button to toggle the menu open and closed. So if I use another variable or logic to hide the menu container, while from the button’s perspective the menu is still in an open state (although it is hidden), clicking/tapping it would actually close an already hidden menu. That would be confusing to the end-user. Sorry if this isn’t clear… let me know if it doesn’t make sense.
I think there would be a need to play with custom js to manipulate classes directly. I don’t have the skills required to analyse and understand the current component well enough by myself though. But if you can point me in the right direction, I should be able to follow through!