Skip to content

Build your personal knowledge base with Trilium Notes

focus and activate should work together

zadamac75fd2ca3fd
diff --git a/src/public/javascripts/services/tree.js b/src/public/javascripts/services/tree.js
index 5ce01da5f3..faae530d65 100644
--- a/src/public/javascripts/services/tree.js
+++ b/src/public/javascripts/services/tree.js
@@ -191,9 +191,7 @@ async function activateNote(notePath, noteLoadedListener) {
noteDetailService.addDetailLoadedListener(node.data.noteId, noteLoadedListener);
}
- // we use noFocus because when we reload the tree because of background changes
- // we don't want the reload event to steal focus from whatever was focused before
- await node.setActive(true, { noFocus: true });
+ await node.setActive(true);
clearSelectedNodes();