From 7515c979dd193b51acf562b8db5815e9690f0acd Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 25 Oct 2023 14:29:08 +0200 Subject: [PATCH] Fix dropdown click aways [SCI-9599] --- app/assets/javascripts/sitewide/dropdown_selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/sitewide/dropdown_selector.js b/app/assets/javascripts/sitewide/dropdown_selector.js index b06406445..1ef939225 100644 --- a/app/assets/javascripts/sitewide/dropdown_selector.js +++ b/app/assets/javascripts/sitewide/dropdown_selector.js @@ -479,7 +479,7 @@ var dropdownSelector = (function() { $(window).scroll(() => { updateDropdownDirection(selectElement, dropdownContainer); }); // When user will click away, we must close dropdown - $(window).click(() => { + $(document).click(() => { if (dropdownContainer.hasClass('open')) { dropdownContainer.find('.search-field').val(''); }