I have a main menu on mobile. It has 4 variants. (menu type: general or admin and state: open or closed)
Within the main menu there are several dropdown menus, all their own component with two variants: open or closed.
The goal is this: whichever menu variant the user starts from (general or admin) I want the dropdown to 1. navigate them to the correct page, which it does
and 2. close the main menu.. not just ‘change to’ closed which only closes itself.
I’ve been trying to create some sort of conditional statement to make this work but I’m having a heck of a time. Anyone know how to do this?
I’ll add a visual.
