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
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-07 17:28:50 +0300
committerPhil Hughes <me@iamphill.com>2017-03-08 11:48:59 +0300
commit107c39a66e621e35f808b3a257789d78bf153894 (patch)
tree3a5c3ce4425a12b0f073d6bc7dc317124f759109 /app/assets/javascripts/filtered_search
parentddf71fcef5d0d7b9952d77d712007008efbb5d3f (diff)
Stop droplab from destroying itself is handled async
Diffstat (limited to 'app/assets/javascripts/filtered_search')
-rw-r--r--app/assets/javascripts/filtered_search/filtered_search_manager.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_manager.js b/app/assets/javascripts/filtered_search/filtered_search_manager.js
index 56ff091197c..652d6c9be0e 100644
--- a/app/assets/javascripts/filtered_search/filtered_search_manager.js
+++ b/app/assets/javascripts/filtered_search/filtered_search_manager.js
@@ -105,8 +105,14 @@
e.preventDefault();
if (!activeElements.length) {
- // Prevent droplab from opening dropdown
- //this.dropdownManager.destroyDroplab();
+ if (this.isHandledAsync) {
+ e.stopImmediatePropagation();
+ this.filteredSearchInput.blur();
+ this.dropdownManager.resetDropdowns();
+ } else {
+ // Prevent droplab from opening dropdown
+ this.dropdownManager.destroyDroplab();
+ }
this.search();
}