diff options
author | Phil Hughes <me@iamphill.com> | 2017-03-07 15:54:45 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-03-08 08:48:59 +0000 |
commit | 382fea7b5925ac7dc47ccfd79f7537284e68cd6f (patch) | |
tree | 4b15d3c02e2f339982dc1df647a184440996887d | |
parent | ab7bfff08b2ba8d15f1ab5f8fa4449dc53f51bab (diff) | |
download | gitlab-ce-382fea7b5925ac7dc47ccfd79f7537284e68cd6f.tar.gz |
Handle clear search async
-rw-r--r-- | app/assets/javascripts/filtered_search/filtered_search_manager.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_manager.js b/app/assets/javascripts/filtered_search/filtered_search_manager.js index 652d6c9be0e..3478f1130a5 100644 --- a/app/assets/javascripts/filtered_search/filtered_search_manager.js +++ b/app/assets/javascripts/filtered_search/filtered_search_manager.js @@ -107,6 +107,7 @@ if (!activeElements.length) { if (this.isHandledAsync) { e.stopImmediatePropagation(); + this.filteredSearchInput.blur(); this.dropdownManager.resetDropdowns(); } else { @@ -205,6 +206,10 @@ this.handleInputPlaceholder(); this.dropdownManager.resetDropdowns(); + + if (this.isHandledAsync) { + this.search(); + } } handleInputVisualToken() { |