Fix #72778 - clear settings tree focus when searching

This commit is contained in:
Rob Lourens 2019-04-24 00:03:21 +00:00
parent 059a3e1642
commit d1af0c4e4c

View file

@ -1065,7 +1065,7 @@ export class SettingsEditor2 extends BaseEditor {
this.searchInProgress = null;
}
this.viewState.filterToCategory = undefined;
this.tocTree.setFocus([]);
this.tocTreeModel.currentSearchModel = this.searchResultModel;
this.onSearchModeToggled();
@ -1206,8 +1206,7 @@ export class SettingsEditor2 extends BaseEditor {
this.tocTreeModel.update();
}
this.tocTree.setSelection([]);
this.viewState.filterToCategory = undefined;
this.tocTree.setFocus([]);
this.tocTree.expandAll();
this.renderTree(undefined, true);