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 {
super('boards');
this.store = store;
this.destroyOnSubmit = false
this.isHandledAsync = true;
}
updateObject(path) {
this.store.path = path.substr(1);
gl.issueBoards.BoardsStore.updateFiltersUrl();
}
}
......@@ -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();
}
......
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