@trudb/tru-common-lib 0.2.89 → 0.2.90
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.
|
@@ -8446,8 +8446,17 @@ class TruDesktopWindowStateMonitor {
|
|
|
8446
8446
|
onFocusIn(event) {
|
|
8447
8447
|
if (this.active) {
|
|
8448
8448
|
let overlayElement = this.overlayContainer.getContainerElement();
|
|
8449
|
-
if (overlayElement.childElementCount > 0)
|
|
8449
|
+
if (overlayElement.childElementCount > 0) {
|
|
8450
|
+
let rootElement = document.querySelector('app-root');
|
|
8451
|
+
if (rootElement)
|
|
8452
|
+
rootElement.setAttribute('inert', '');
|
|
8450
8453
|
return; // Ignore focus events when overlays are present
|
|
8454
|
+
}
|
|
8455
|
+
else {
|
|
8456
|
+
let rootElement = document.querySelector('app-root');
|
|
8457
|
+
if (rootElement)
|
|
8458
|
+
rootElement.removeAttribute('inert');
|
|
8459
|
+
}
|
|
8451
8460
|
setTimeout(() => {
|
|
8452
8461
|
let target = event.target;
|
|
8453
8462
|
this.focusableElements = this.getFocusableChildElements();
|