@ibragim-dev-org/ui-forge-library 1.4.72 → 1.4.73

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.
@@ -1578,13 +1578,17 @@ class Alert {
1578
1578
 
1579
1579
  class UiAlertMessagesOverlayService {
1580
1580
  overlay;
1581
- component = null;
1581
+ isAttached = false;
1582
1582
  overlayRef;
1583
+ component = null;
1583
1584
  constructor(component, overlay) {
1584
1585
  this.overlay = overlay;
1585
1586
  this.init(component);
1586
1587
  }
1587
1588
  attachComponent() {
1589
+ if (this.isAttached) {
1590
+ return;
1591
+ }
1588
1592
  if (!this.component) {
1589
1593
  this.throwIfNotInitialized();
1590
1594
  return;
@@ -1595,6 +1599,7 @@ class UiAlertMessagesOverlayService {
1595
1599
  });
1596
1600
  this.overlayRef = this.overlay.create(config);
1597
1601
  this.overlayRef.attach(new ComponentPortal(this.component));
1602
+ this.isAttached = true;
1598
1603
  }
1599
1604
  init(component) {
1600
1605
  this.component = component;