Skip to content

Commit 548f4c6

Browse files
author
Stanislav Idolov
authored
ENGCOM-1723: [Forwardport] Issue 15469: Javascript error dropdowns.js #15607
2 parents a91d110 + cab9b51 commit 548f4c6

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)