Sounds like you can potentially have an overlay that fills the browser. This overlay will hold the “makes another div visible” content. Your navigation will open this overlay. Then, you can assign a “close” action to this overlay div, thereby closing every… not allowing the user to accidentally click on something else.
Again, this is just my wild vision of what you’re trying to do. Share link and deeper explanation will be helpful.
Ignore the double navigation bar. When you click on the menu item “Leistungen”, a menu opens, now when you click on it again, it closes. I want it to close when I click anywhere on the page.
I decided to build my own custom navigation rather than using the native dropdown solution and am dealing with the same issue you’ve mentioned. Came across this amidst my research. When I come up with a solution I’ll report back.