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(''); }