Skip to content

Commit 274703e

Browse files
committed
#10430: Prevent remove click listener when switch from mobile to desktop mode.
- Fixed test failures regarding coding style
1 parent 4540f30 commit 274703e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/web/mage/menu.js

Lines changed: 3 additions & 1 deletion
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
*/
@@ -371,9 +372,10 @@ define([
371372
*/
372373
_toggleDesktopMode: function () {
373374
var categoryParent, html;
374-
375+
375376
$(this.element).off('click mousedown mouseenter mouseleave');
376377
this._on({
378+
377379
/**
378380
* Prevent focus from sticking to links inside menu after clicking
379381
* them (focus should always stay on UL during navigation).

0 commit comments

Comments
 (0)