I am trying to have my page loaded with the menu collapsed by default and only open when the category above it is clicked.
So far, my menu will collapse and open when the main category is clicked, however I don’t want the submenu displayed by default when the page is loaded.
What is the correct logic to leave the menu collapsed when the page is loaded as I already have clicked the box “collapse when hidden,” and this doesn’t work.

If I use this conditional, then the menu does not work when the main category is clicked.
