Skip to content

Commit 1e2019c

Browse files
brian-labelledmytro-ch
authored andcommitted
Issue 15469: Javascript error dropdowns.js
Fixes Javascript error in dropdowns.js by properly initializing the el variable. options.autoclose can now be set to false
1 parent eaa8525 commit 1e2019c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/web/mage/dropdowns.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,9 @@ define([
127127
}
128128

129129
elem.on('click.toggleDropdown', function () {
130-
var el;
130+
var el = actionElem;
131131

132132
if (options.autoclose === true) {
133-
el = actionElem;
134-
135133
actionElem = $();
136134
$(document).trigger('click.hideDropdown');
137135
actionElem = el;

0 commit comments

Comments
 (0)