Skip to content

Commit

Permalink
Issue 15469: Javascript error dropdowns.js
Browse files Browse the repository at this point in the history
Fixes Javascript error in dropdowns.js by properly initializing the el variable. options.autoclose can now be set to false
  • Loading branch information
brian-labelle authored and dmytro-ch committed May 30, 2018
1 parent eaa8525 commit 1e2019c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/web/mage/dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ define([
}

elem.on('click.toggleDropdown', function () {
var el;
var el = actionElem;

if (options.autoclose === true) {
el = actionElem;

actionElem = $();
$(document).trigger('click.hideDropdown');
actionElem = el;
Expand Down

0 comments on commit 1e2019c

Please sign in to comment.