metismenu
metismenu copied to clipboard
class="active" doesn't get removed when aria-disabled="true"
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?
@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?