Fix quick arrow navigation not collapsing nodes correctly

This commit is contained in:
Magnus Åhall 2026-06-08 20:27:43 +02:00
parent b3e5d79403
commit 4976a6ebe0
5 changed files with 60 additions and 69 deletions

View file

@ -42,7 +42,8 @@ export class N2PageNodeUI extends CustomHTMLElement {
this.marked = new MarkedPosition()
_mbus.subscribe('NODE_UI_OPEN', event => {
this.node = event.detail.data
console.log(event.detail.data.eventSequence, _app.showNodeEventSequence.current())
this.node = event.detail.data.node
this.showMarkdown(true)
this.render()
})
@ -376,10 +377,6 @@ export class Node {
this.Children[i]._parent = this
}
// Notify the tree that all children are fetched and ready to process.
//_notes2.current.tree.fetchChildrenOn(this.UUID)
_mbus.dispatch(`NODE_CHILDREN_FETCHED_${this.UUID}`)
return this.Children
}//}}}
setHasChildren(v) {// {{{