onokumus / metismenu

A collapsible jQuery menu plugin

Home Page:https://onokumus.github.io/metismenu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

class="active" doesn't get removed when aria-disabled="true"

asarro opened this issue · comments

Hi,
I've set the aria-disabled="true" to disable the submenu expanding but the given element was selected and so the class is set to "active". But when I click something else in the menu, it doesn't remove the class="active" and so I end up with two things set as "active".

If you look below "testId-Element" and "testId-Element2" are both active. Is this an expected behaviour?

capture

@asarro

Yes, you should add "active" class to the "li" tag. metisMenu does not make any changes on the "active" class that is added on "a" tag.

@onokumus
hi Osman, thanks

though can I clarify, that when aria-disabled="true" the event "show.metisMenu" doesnt get triggered?