fix(voice): release call modals when fullscreen ends (#3149)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-03 02:13:46 +02:00
1 parent d6fb3b2c50
commit cf9752db4f
3 files changed
+27 -10

No files matched your search

@@ -134,6 +134,13 @@ class ModalState {
};
}
releasePortalHost(host: HTMLElement): void {
if (!this.modals.some((modal) => modal.portalHost === host)) return;
this.modals = this.modals.map((modal) =>
modal.portalHost === host ? {...modal, portalHost: null, ownerDocument: this.resolveOwnerDocument(null)} : modal,
);
}
pop(key?: string | number, ownerDocument?: Document): void {
let removed: ModalEntry | undefined;
let wasTopmost = false;