Skip to content

Commit

Permalink
Merge forwardport of #13341 to 2.3-develop branch
Browse files Browse the repository at this point in the history
Applied pull request patch https://github.com/magento/magento2/pull/13341.patch (created by @arnoudhgz) based on commit(s):
  1. 5714ffd
  2. 5773225

Fixed GitHub Issues in 2.3-develop branch:
  - #13327: Menu ui-state-active not removed from previous opened menu item (reported by @arnoudhgz)
  • Loading branch information
magento-engcom-team authored Feb 15, 2018
2 parents 818cf61 + d544ca2 commit 61d0d96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/web/mage/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ define([
return;
}

// remove the active state class from the siblings
this.active.siblings().children('.ui-state-active').removeClass('ui-state-active');

this._open(newItem.parent());

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

0 comments on commit 61d0d96

Please sign in to comment.