Skip to content

Commit 4568687

Browse files
author
Jeroen Alewijns
authored
Update menu.js
Prevent remove click listener when switch from mobile to desktop mode.
1 parent 249863e commit 4568687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/web/mage/menu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ define([
371371
*/
372372
_toggleDesktopMode: function () {
373373
var categoryParent, html;
374-
374+
375+
$(this.element).off('click mouseenter mouseleave');
375376
this._on({
376377
/**
377378
* Prevent focus from sticking to links inside menu after clicking

0 commit comments

Comments
 (0)