From 31e3b63b2fa812f845a4461ce44d1fbdea430956 Mon Sep 17 00:00:00 2001 From: Brian LaBelle Date: Thu, 24 May 2018 10:40:38 -0500 Subject: [PATCH] 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 --- lib/web/mage/dropdowns.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/web/mage/dropdowns.js b/lib/web/mage/dropdowns.js index 6c1389924a24b..1496a1c65d957 100644 --- a/lib/web/mage/dropdowns.js +++ b/lib/web/mage/dropdowns.js @@ -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;