mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
fix scrolling to the top of detail after switching note
This commit is contained in:
@@ -223,7 +223,7 @@ async function loadNoteDetail(noteId) {
|
||||
treeService.setBranchBackgroundBasedOnProtectedStatus(noteId);
|
||||
|
||||
// after loading new note make sure editor is scrolled to the top
|
||||
$noteDetailWrapper.scrollTop(0);
|
||||
getComponent(currentNote.type).scrollToTop();
|
||||
|
||||
$scriptArea.empty();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user