Skip to content

Commit cd5c72e

Browse files
Merge forwardport of #12161 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12161.patch (created by @scazz010) based on commit(s): 1. 6330103 2. faa7129
2 parents 76f6eed + eceb5eb commit cd5c72e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/web/mage/menu.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ define([
2121
expanded: false,
2222
showDelay: 42,
2323
hideDelay: 300,
24+
delay: 300,
2425
mediaBreakpoint: '(max-width: 768px)'
2526
},
2627

@@ -30,6 +31,8 @@ define([
3031
_create: function () {
3132
var self = this;
3233

34+
this.delay = this.options.delay;
35+
3336
this._super();
3437
$(window).on('resize', function () {
3538
self.element.find('.submenu-reverse').removeClass('submenu-reverse');
@@ -586,7 +589,7 @@ define([
586589
html.removeClass('nav-open');
587590
setTimeout(function () {
588591
html.removeClass('nav-before-open');
589-
}, 300);
592+
}, this.options.hideDelay);
590593
}
591594
},
592595

0 commit comments

Comments
 (0)