When i click on 2nd level menu in mobile it collapse all active menu. I tested this on default theme also. it also happening there. I think its default issue.
How can i prevent it to stop collapse all menu and only collapse current menu?
magento2menumobile-menu
When i click on 2nd level menu in mobile it collapse all active menu. I tested this on default theme also. it also happening there. I think its default issue.
How can i prevent it to stop collapse all menu and only collapse current menu?
Best Answer
1) Create mixin for mage/menu
2) rewrite function
_toggleMobileMode
3) add 3 lines to the
'click .ui-menu-item:has(a)'
method4) It works
full code of mixin: