Skip to content

Commit

Permalink
⏫ Forwardport of #12161 to 2.3-develop branch
Browse files Browse the repository at this point in the history
Applied pull request patch https://github.com/magento/magento2/pull/12161.patch (created by @scazz010) based on commit(s):
  1. 6330103
  2. faa7129
  • Loading branch information
magento-engcom-team committed Jan 24, 2018
1 parent 8e77e2f commit eceb5eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/web/mage/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ define([
expanded: false,
showDelay: 42,
hideDelay: 300,
delay: 300,
mediaBreakpoint: '(max-width: 768px)'
},

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

this.delay = this.options.delay;

this._super();
$(window).on('resize', function () {
self.element.find('.submenu-reverse').removeClass('submenu-reverse');
Expand Down Expand Up @@ -586,7 +589,7 @@ define([
html.removeClass('nav-open');
setTimeout(function () {
html.removeClass('nav-before-open');
}, 300);
}, this.options.hideDelay);
}
},

Expand Down

0 comments on commit eceb5eb

Please sign in to comment.