soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
315 stars 29 forks source link

Pro Menu option to only have one submenu open at a time #3434

Open bellamystudio opened 11 months ago

bellamystudio commented 11 months ago

I have a site with quite long submenus. On the mobile version, the submenu shows without scrolling if only one is open, but if I open two I suddenly have a long and ungainly nav system. Ideally it would be great to have a toggle in the admin like 'close other submenus on open'

This would make mobile navigation much friendlier as an option.

I've tried digging into the source to see if there's a hacky way around this, but the classes on the li/a elements don't change (as far as I can see only the display: selector changes on the submenu - so I'm not sure how to approach it as I can't search for all 'open' classes and close them, adn the menu-pro.class file is a bit of a jQuery nightmare with lots of descendant selectors in every event.