{ passive: false },
);
+ const observer = new MutationObserver((mutations) => {
+ const currentValue = _container.getAttribute("aria-hidden");
+
+ for (const mutation of mutations) {
+ if (mutation.oldValue === currentValue) {
+ continue;
+ }
+
+ if (currentValue === "false") {
+ adoptPageOverlayContainer(_container);
+ } else {
+ releasePageOverlayContainer(_container);
+ }
+ }
+ });
+ observer.observe(_container, {
+ attributes: true,
+ attributeFilter: ["aria-hidden"],
+ attributeOldValue: true,
+ });
+
document.getElementById("content")!.appendChild(_container);
_keyupListener = (event: KeyboardEvent): boolean => {
}, 200);
}
- adoptPageOverlayContainer(_container);
-
return data;
},
}
}
- releasePageOverlayContainer(_container);
UiScreen.pageOverlayClose();
if (_activeDialog === null) {
event.preventDefault();
}
}, { passive: false });
+ const observer = new MutationObserver((mutations) => {
+ const currentValue = _container.getAttribute("aria-hidden");
+ for (const mutation of mutations) {
+ if (mutation.oldValue === currentValue) {
+ continue;
+ }
+ if (currentValue === "false") {
+ (0, PageOverlay_1.adoptPageOverlayContainer)(_container);
+ }
+ else {
+ (0, PageOverlay_1.releasePageOverlayContainer)(_container);
+ }
+ }
+ });
+ observer.observe(_container, {
+ attributes: true,
+ attributeFilter: ["aria-hidden"],
+ attributeOldValue: true,
+ });
document.getElementById("content").appendChild(_container);
_keyupListener = (event) => {
if (event.key === "Escape") {
data.content.querySelector("input, textarea")?.focus();
}, 200);
}
- (0, PageOverlay_1.adoptPageOverlayContainer)(_container);
return data;
},
/**
break;
}
}
- (0, PageOverlay_1.releasePageOverlayContainer)(_container);
UiScreen.pageOverlayClose();
if (_activeDialog === null) {
_container.setAttribute("aria-hidden", "true");