@vectoriox/iox-builder 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2647,8 +2647,9 @@ class BuilderComponent {
|
|
|
2647
2647
|
this.overlayService.clearSelect();
|
|
2648
2648
|
}
|
|
2649
2649
|
else if (action === NodeAction.Duplicate) {
|
|
2650
|
-
const clone =
|
|
2650
|
+
const clone = this.deepCloneWithNewIds(node);
|
|
2651
2651
|
result.parent.splice(result.index + 1, 0, clone);
|
|
2652
|
+
this.cdr.markForCheck();
|
|
2652
2653
|
}
|
|
2653
2654
|
}
|
|
2654
2655
|
onTreeNodeMove() {
|
|
@@ -2676,8 +2677,9 @@ class BuilderComponent {
|
|
|
2676
2677
|
case ToolbarAction.Duplicate: {
|
|
2677
2678
|
const result = this.findNodeInTree(node, this.layout);
|
|
2678
2679
|
if (result) {
|
|
2679
|
-
const clone =
|
|
2680
|
+
const clone = this.deepCloneWithNewIds(node);
|
|
2680
2681
|
result.parent.splice(result.index + 1, 0, clone);
|
|
2682
|
+
this.cdr.markForCheck();
|
|
2681
2683
|
}
|
|
2682
2684
|
break;
|
|
2683
2685
|
}
|