Dropdown Closes When other elements are selected

Hello,

I am trying to create a navigation that functions like the one on this website: Nav bar I want to create

I want my dropdown only to open en close when the header section of the dropdown is selected.
Even when changing pages or selecting other elements on the page.

I know I have to arrange this with a show hide interaction, but I can’t figure out how to correctly configure the settings.

My Website

Hope someone can help me, thanks in advance!


Here is my public share link: LINK
(how to access public share link)