Skip to content

Commit 7fdf23a

Browse files
MAGETWO-71350: Prevent remove click listener when switch from mobile to desktop mode. #10430
2 parents d0f760c + fae6d0f commit 7fdf23a

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
@@ -323,6 +323,7 @@ define([
323323

324324
$(this.element).off('mouseenter mouseleave');
325325
this._on({
326+
326327
/**
327328
* @param {jQuery.Event} event
328329
*/
@@ -372,7 +373,9 @@ define([
372373
_toggleDesktopMode: function () {
373374
var categoryParent, html;
374375

376+
$(this.element).off('click mousedown mouseenter mouseleave');
375377
this._on({
378+
376379
/**
377380
* Prevent focus from sticking to links inside menu after clicking
378381
* them (focus should always stay on UL during navigation).

0 commit comments

Comments
 (0)