Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2016-12-10 22:55:41 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-01-10 01:01:13 +0300
commit575d4491cac225544081135820a1fa53a72d4709 (patch)
treea1b247e156e0297f09669e2155cfaea30f312285 /app
parent85f1793590b31171bac3c1e1f5d4420d96302551 (diff)
Fixed bug where filters were not being reset after being cleared
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/filtered_search/filtered_search_manager.js.es67
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6 b/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
index c7e01fc710d..5d38a23d9fd 100644
--- a/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
+++ b/app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
@@ -247,15 +247,16 @@
this.filteredSearchInput.value = '';
this.clearSearchButton.classList.add('hidden');
- // Reset Filters
- this.mapping[this.currentDropdown].reference.resetFilters();
- // Force dropdown to hide
+ // Force current dropdown to hide
this.mapping[this.currentDropdown].reference.hideDropdown();
// Re-Load dropdown
this.setDropdown();
+ // Reset filters for current dropdown
+ this.mapping[this.currentDropdown].reference.resetFilters();
+
// Reposition dropdown so that it is aligned with cursor
this.updateDropdownOffset(this.currentDropdown);
}