@acorex/components 20.7.25 → 20.7.27

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.
@@ -507,6 +507,11 @@ class AXContextMenuComponent extends NXComponent {
507
507
  const wasOpen = this.nativeElement.classList.contains('ax-state-open');
508
508
  this.nativeElement.classList.remove('ax-state-open');
509
509
  this.lastOpenPoint = null;
510
+ // Drop rendered items before moving DOM nodes back to the original parent.
511
+ // This prevents a large menu tree from being re-parented/removed as a single heavy DOM operation.
512
+ if (wasOpen) {
513
+ this.items.set([]);
514
+ }
510
515
  this.removeBackdrop();
511
516
  // Release z-index token
512
517
  this.zIndexService.release(this.zToken);