mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 23:05:51 +01:00
fix(tree): Unexpected collapse after hoisting a note
This commit is contained in:
@@ -1507,6 +1507,12 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.toggleHiddenNode(true); // hoisting will handle hidden note visibility
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user