Skip to content

Commit 5773225

Browse files
authored
Merge pull request #8 from arnoudhgz/bugfix/13327-ui-active-state-not-removed-from-previous-menu-item
Remove ui-state-active from siblings of the expanded menu item
2 parents e411c1d + 5714ffd commit 5773225

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/web/mage/menu.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ define([
626626
return;
627627
}
628628

629+
// remove the active state class from the siblings
630+
this.active.siblings().children('.ui-state-active').removeClass('ui-state-active');
631+
629632
this._open(newItem.parent());
630633

631634
// Delay so Firefox will not hide activedescendant change in expanding submenu from AT

0 commit comments

Comments
 (0)