Skip to content

Build your personal knowledge base with Trilium Notes

fix focusing tree from note detail, closes #1897

zadamf22c76d9fb75
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js
index 961053d44f..a1dcc129ba 100644
--- a/src/public/app/widgets/note_tree.js
+++ b/src/public/app/widgets/note_tree.js
@@ -813,6 +813,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
const activeContext = appContext.tabManager.getActiveTabContext();
if (activeContext && activeContext.notePath) {
+ this.tree.$container.focus();
this.tree.setFocus(true);
const node = await this.expandToNote(activeContext.notePath);