Merge pull request #2293 from TriliumNext/tree

fix(tree): Unexpected collapse after hoisting a note
This commit is contained in:
Elian Doran
2025-06-12 18:34:09 +03:00
committed by GitHub

View File

@@ -1507,6 +1507,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
);
this.toggleHiddenNode(true); // hoisting will handle hidden note visibility
// Automatically expand the hoisted note by default
const node = this.getActiveNode();
if (node.data.noteId === this.noteContext.hoistedNoteId){
this.setExpanded(node.data.branchId, true);
}
}
}