Menu won't open unless I tap twice

Sadly it didn’t work. Maybe there is something that I did wrong.

Here’s what I did. I basically created two hamburger icons that hide and show depending on the state of the other. They are independent of one another. One opens the menu, and the other closes.

I think is the very same problem - when I tap on one of the links, the menu closes, but I believe it still ‘‘thinks that the next click should close the menu’’.

If there is anything that I did wrong please help me understand what it is.

I am also open to other solutions - I hope they are crazy difficult :sweat_smile:

Thank you.