提交 107c39a6 编写于 作者: P Phil Hughes

Stop droplab from destroying itself is handled async

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册