Skip to content

Commit

Permalink
Update menu.js
Browse files Browse the repository at this point in the history
Prevent remove click listener when switch from mobile to desktop mode.
  • Loading branch information
Jeroen Alewijns authored Aug 4, 2017
1 parent 249863e commit 4568687
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/web/mage/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ define([
*/
_toggleDesktopMode: function () {
var categoryParent, html;


$(this.element).off('click mouseenter mouseleave');
this._on({
/**
* Prevent focus from sticking to links inside menu after clicking
Expand Down

0 comments on commit 4568687

Please sign in to comment.