@arsedizioni/ars-utils 19.4.78 → 19.4.80

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.
@@ -491,10 +491,13 @@ class SelectTreeDialogComponent {
491
491
  */
492
492
  appendNode(node) {
493
493
  this.tree.insertNode(node);
494
- this.currentNode = node;
495
- if (node.parent) {
496
- this.expand(node);
497
- }
494
+ setTimeout(() => {
495
+ const newNode = this.currentNode.children.find(x => x.id === node.id);
496
+ if (newNode) {
497
+ console.log(newNode.id);
498
+ this.expand(newNode);
499
+ }
500
+ }, 100);
498
501
  }
499
502
  /**
500
503
  * Append