Fix quick arrow navigation not collapsing nodes correctly
This commit is contained in:
parent
b3e5d79403
commit
4976a6ebe0
5 changed files with 60 additions and 69 deletions
|
|
@ -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) {// {{{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue