Skip to content

Build your personal knowledge base with Trilium Notes

activate node after calling "scroll to active note", fixes #1685

zadamd0eaf623a87a
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js
index 8ee88ebb3f..37d7c5b8b5 100644
--- a/src/public/app/widgets/note_tree.js
+++ b/src/public/app/widgets/note_tree.js
@@ -797,7 +797,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
const node = await this.expandToNote(activeContext.notePath);
await node.makeVisible({scrollIntoView: true});
- node.setFocus(true);
+ node.setActive(true, {noEvents: true, noFocus: false});
}
}