_activeDialog = null;
for (let i = 0; i < _container.childElementCount; i++) {
const child = _container.children[i] as HTMLElement;
- if (!Core.stringToBool(child.getAttribute("aria-hidden"))) {
+ if (child.classList.contains("dialogContainer") && !Core.stringToBool(child.getAttribute("aria-hidden"))) {
_activeDialog = child.dataset.id || "";
break;
}
_activeDialog = null;
for (let i = 0; i < _container.childElementCount; i++) {
const child = _container.children[i];
- if (!Core.stringToBool(child.getAttribute("aria-hidden"))) {
+ if (child.classList.contains("dialogContainer") && !Core.stringToBool(child.getAttribute("aria-hidden"))) {
_activeDialog = child.dataset.id || "";
break;
}