diff --git a/app/assets/javascripts/projects/index.js b/app/assets/javascripts/projects/index.js index 308da0cb5..c1afc5ec5 100644 --- a/app/assets/javascripts/projects/index.js +++ b/app/assets/javascripts/projects/index.js @@ -641,6 +641,10 @@ var ProjectsIndex = (function() { $('#folderSearchInfo').toggle(); }); + $projectsFilter.on('click', '#folder_search', function(e) { + e.stopPropagation(); + }); + $filterDropdown.on('filter:apply', function() { createdOnFromFilter = selectDate($createdOnFromFilter); createdOnToFilter = selectDate($createdOnToFilter); diff --git a/app/assets/javascripts/sitewide/filter_dropdown.js b/app/assets/javascripts/sitewide/filter_dropdown.js index 70acc54a4..a380485e6 100644 --- a/app/assets/javascripts/sitewide/filter_dropdown.js +++ b/app/assets/javascripts/sitewide/filter_dropdown.js @@ -10,8 +10,8 @@ var filterDropdown = (function() { } function preventDropdownClose() { - $('.dropdown-menu', $filterContainer).click((e) => { - if (!$(e.target).is('input,a,.keyword-text,.keyword-icon')) { + $filterContainer.on('click', '.dropdown-menu', function(e) { + if (!$(e.target).is('input,a')) { e.stopPropagation(); e.preventDefault(); $('#textSearchFilterHistory').hide(); @@ -35,7 +35,7 @@ var filterDropdown = (function() { $('#textSearchFilterHistory').append( $(`