aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue6
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;