Commit 107c39a6 authored by Phil Hughes's avatar Phil Hughes

Stop droplab from destroying itself is handled async

parent ddf71fce
...@@ -3,11 +3,12 @@ export default class FilteredSearchBoards extends gl.FilteredSearchManager { ...@@ -3,11 +3,12 @@ export default class FilteredSearchBoards extends gl.FilteredSearchManager {
super('boards'); super('boards');
this.store = store; this.store = store;
this.destroyOnSubmit = false this.isHandledAsync = true;
} }
updateObject(path) { updateObject(path) {
this.store.path = path.substr(1); this.store.path = path.substr(1);
gl.issueBoards.BoardsStore.updateFiltersUrl(); gl.issueBoards.BoardsStore.updateFiltersUrl();
} }
} }
...@@ -105,8 +105,14 @@ ...@@ -105,8 +105,14 @@
e.preventDefault(); e.preventDefault();
if (!activeElements.length) { if (!activeElements.length) {
if (this.isHandledAsync) {
e.stopImmediatePropagation();
this.filteredSearchInput.blur();
this.dropdownManager.resetDropdowns();
} else {
// Prevent droplab from opening dropdown // Prevent droplab from opening dropdown
//this.dropdownManager.destroyDroplab(); this.dropdownManager.destroyDroplab();
}
this.search(); this.search();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment