diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-08 12:26:46 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-08 12:26:46 +1000 |
| commit | d84a2dab11aa23d56c3213008424872e1a011279 (patch) | |
| tree | f4c393671725d89403fb993f40bb0b094c266bf6 /src/App.vue | |
| parent | f2c4909c5e8bdbd7f520cd2806c9a2e9e0047108 (diff) | |
Fix jump-to-direct-child-of-ancestor layout-fail
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index 8e3bd11..434eb08 100644 --- a/src/App.vue +++ b/src/App.vue @@ -542,7 +542,11 @@ export default defineComponent({ layoutNode.addDescendantChain(nodesToAdd, this.tolMap, this.layoutMap); // Expand-to-view on target-node's parent targetNode = this.layoutMap.get(name); - await this.onLeafClickHeld(targetNode!.parent!, true); + if (targetNode.parent != this.activeRoot){ + await this.onLeafClickHeld(targetNode!.parent!, true); + } else { + await this.onLeafClick(targetNode!.parent!, true); + } setTimeout(() => this.setLastFocused(targetNode!), this.uiOpts.transitionDuration); this.modeRunning = null; return; |
