Second click on item removes mm-active class
akvaliya opened this issue · 3 comments
akvaliya commented
version:
@Version 3.0.4
Description
When i click on item second time on the same item mm-active class gets removed. This is unexpected behavior. It's breaks requirements to show active page. When menu item doesn't have sub-menu & user clicks on same menu-item it triggers area-expand behavior. which should not be the case since item doesn't contain sub-menu.
AmirinNS commented
I'm also having this problem. My quick solution is by doing this
$('#metismenu li a').on('click', function(){
$(this).attr('aria-expanded', 'true')
$(this).parent().addClass('mm-active')
})
It does not remove active menu when clicking outside the metis menu, which I assume a bug. However for my project it is not bother me at all