Skip to content

Commit 5714ffd

Browse files
committed
Remove ui-state-active from siblings of the expanded menu item
Previously when a menu item was expanded the class `ui-state-active` was not removed from the previous expanded menu item. This resulted in two (or more if you expanded more) menu items with this class.
1 parent e411c1d commit 5714ffd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: lib/web/mage/menu.js

+3
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)