3rd level mobile menu issue
-
Hi,
In mobile view, I’m noticing that with a three level menu, if I don’t close the 3rd level, but close the 1st level, I can no longer highlight any 1st level items that the 3rd level menu had displayed over.
However, if I drill down to the 3rd level and close that menu, then close the 2nd menu, and then the first menu, then everything on the 1st level highlights correctly.
The solution/workaround I have found for now was changing line 195 in the maxmegamenu.js from
plugin.hidePanel($(this), false);
to
plugin.hideAllPanels();Edit:
However, should only do hideAllPanels() when clicking the top level menu item. The above change also closes everything if clicking on the 3rd or 2nd level menu, which, yeah, isn’t quite right.Edit 2:
changing ln 195 to:
plugin.hideSiblingPanels($(this));seems like it may function properly.
If this seems correct, just wondering if it could make sense to merge the change into maxmegamenu.js? Otherwise, I dont know if something could be added to a theme, external to the plugin, to achieve similar behavior?
Thanks!
- The topic ‘3rd level mobile menu issue’ is closed to new replies.