metismenu icon indicating copy to clipboard operation
metismenu copied to clipboard

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

Open asarro opened this issue 7 years ago • 3 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 avatar Mar 07 '17 11:03 asarro

@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 avatar Mar 07 '17 12:03 onokumus

@onokumus hi Osman, thanks

asarro avatar Mar 07 '17 13:03 asarro

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

asarro avatar Mar 07 '17 16:03 asarro