mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
comment
This commit is contained in:
parent
513bf252cd
commit
2b2f4fbc07
@ -353,7 +353,11 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
},
|
||||
beforeActivate: (event, {node}) => {
|
||||
// hidden subtree is hidden hackily, prevent activating it, e.g. by keyboard
|
||||
// hidden subtree is hidden hackily - we want it to be present in the tree so that we can switch to it
|
||||
// without reloading the whole tree, but we want it to be hidden when hoisted to root. FancyTree allows
|
||||
// filtering the display only by ascendant - i.e. if the root is visible, all the descendants are as well.
|
||||
// We solve it by hiding the hidden subtree via CSS (class "hidden-node-is-hidden"),
|
||||
// but then we need to prevent activating it, e.g. by keyboard
|
||||
|
||||
if (hoistedNoteService.getHoistedNoteId() === '_hidden') {
|
||||
// if we're hoisted in hidden subtree, we want to avoid crossing to "visible" tree,
|
||||
|
Loading…
x
Reference in New Issue
Block a user