Fixed an issue where the tree is not scrolling to the object selected from the search result. Fixes #6828

This commit is contained in:
Khushboo Vashi
2021-10-07 17:23:21 +05:30
committed by Akshay Joshi
parent d65930a8a6
commit 9796f50362
3 changed files with 6 additions and 2 deletions

View File

@@ -288,7 +288,9 @@ export default class SearchObjectsDialogWrapper extends DialogWrapper {
this.showMessage(gettext('Locating...'));
tree.findNodeWithToggle(rowData.id_path)
.then((treeItem)=>{
tree.select(treeItem, true);
setTimeout(() => {
tree.select(treeItem, true);
}, 100);
this.showMessage(null);
})
.catch((error)=>{