@ibragim-dev-org/ui-forge-library 1.4.72 → 1.4.74
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
|
-
|
|
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;
|
|
@@ -1594,7 +1598,9 @@ class UiAlertMessagesOverlayService {
|
|
|
1594
1598
|
positionStrategy: strategy,
|
|
1595
1599
|
});
|
|
1596
1600
|
this.overlayRef = this.overlay.create(config);
|
|
1601
|
+
this.overlayRef.hostElement.style.zIndex = '1001';
|
|
1597
1602
|
this.overlayRef.attach(new ComponentPortal(this.component));
|
|
1603
|
+
this.isAttached = true;
|
|
1598
1604
|
}
|
|
1599
1605
|
init(component) {
|
|
1600
1606
|
this.component = component;
|