meanthemes / meanMenu

A responsive menu plugin
407 stars 177 forks source link

Onepage breaks toggle classes #70

Open robwent opened 7 years ago

robwent commented 7 years ago

If the onepage option is enabled, when I click a link in the menu, the menu closes as it should, but the meanMenuOpen class is not removed from the html tag. When you then open the menu again, the class then gets removed so they are out of sync.

If you use those classes for styling the open menu then it breaks the styling.

robwent commented 7 years ago

After this line

https://github.com/meanthemes/meanMenu/blob/master/jquery.meanmenu.js#L233

I've added

jQuery('html').removeClass('mean-menu-open');

fixes the issue for me.

biswajitfsd commented 7 years ago

Can anyone tell me, why mean menu plugin creating multiple mean-bar? screenshot 31 _li

robwent commented 7 years ago

@bjitpatra1305 Can you open your own issue rather than commenting on others with support questions?