From eee75bd2e88f6f718647431f32437964b4c51cf8 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 21 May 2019 22:07:08 +0200 Subject: [PATCH] fix node focus after hoisting --- src/public/javascripts/services/hoisted_note.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/public/javascripts/services/hoisted_note.js b/src/public/javascripts/services/hoisted_note.js index ff7458911..80b0fc12e 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() {