Skip to content

Build your personal knowledge base with Trilium Notes

fix node focus after hoisting

zadameee75bd2e88f
diff --git a/src/public/javascripts/services/hoisted_note.js b/src/public/javascripts/services/hoisted_note.js
index ff74589110..80b0fc12e7 100644
--- a/src/public/javascripts/services/hoisted_note.js
+++ b/src/public/javascripts/services/hoisted_note.js
@@ -25,6 +25,12 @@ async function setHoistedNoteId(noteId) {
await server.put('options/hoistedNoteId/' + noteId);
await tree.reload();
+
+ const activeTabContext = noteDetailService.getActiveTabContext();
+
+ if (activeTabContext) {
+ await tree.activateNote(activeTabContext.notePath);
+ }
}
async function unhoist() {