Fixed regression of recursive expansion toggle
This commit is contained in:
parent
ea3bdaca03
commit
f5cbfb0b22
1 changed files with 3 additions and 5 deletions
|
|
@ -438,11 +438,6 @@ export class N2Sidebar extends CustomHTMLElement {
|
|||
return currNode
|
||||
}//}}}
|
||||
async recursiveExpand(node, state) {//{{{
|
||||
if (!state) {
|
||||
await this.setNodeExpanded(node, false)
|
||||
return
|
||||
}
|
||||
|
||||
if (state)
|
||||
await this.setNodeExpanded(node, true)
|
||||
|
||||
|
|
@ -452,6 +447,9 @@ export class N2Sidebar extends CustomHTMLElement {
|
|||
|
||||
for (const child of node.Children)
|
||||
await this.recursiveExpand(child, state)
|
||||
|
||||
if (!state)
|
||||
await this.setNodeExpanded(node, false)
|
||||
}//}}}
|
||||
async makeVisible(node, providedAncestors, dontExpand) {// {{{
|
||||
const treenode = this.treeNodeComponents[node.UUID]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue