I’ve built a mega menu that is activated on click. The issue is when I close the menu. I want it so that it closes when the user clicks a second time on the navigation item (in this case “What We Do”) - OR - when they click out of the menu. This works fine. However, if I click off the menu, the second click for the navigation item is still set to close the menu. How can I reset that navigation link so that it knows whether it should be opening or closing the mega menu?
Survey Monkey site does exactly what I want to do: https://www.surveymonkey.com/