@trudb/tru-common-lib 0.2.89 → 0.2.91
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.
|
@@ -1123,7 +1123,13 @@ class TruUiNotification {
|
|
|
1123
1123
|
maxWidth: "400px",
|
|
1124
1124
|
data: dialogConfig
|
|
1125
1125
|
});
|
|
1126
|
+
let rootElement = document.querySelector('app-root');
|
|
1127
|
+
if (rootElement)
|
|
1128
|
+
rootElement.setAttribute('inert', '');
|
|
1126
1129
|
dialogRef.afterClosed().subscribe(dialogResult => {
|
|
1130
|
+
rootElement = document.querySelector('app-root');
|
|
1131
|
+
if (rootElement)
|
|
1132
|
+
rootElement.removeAttribute('inert');
|
|
1127
1133
|
resolve(dialogResult);
|
|
1128
1134
|
});
|
|
1129
1135
|
});
|
|
@@ -8439,7 +8445,9 @@ class TruDesktopWindowStateMonitor {
|
|
|
8439
8445
|
this.focusAppropriateElement(event);
|
|
8440
8446
|
}
|
|
8441
8447
|
else {
|
|
8442
|
-
|
|
8448
|
+
let overlayElement = this.overlayContainer.getContainerElement();
|
|
8449
|
+
if (!(overlayElement.childElementCount > 0))
|
|
8450
|
+
event.preventDefault();
|
|
8443
8451
|
}
|
|
8444
8452
|
}
|
|
8445
8453
|
}
|