mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(voice): release call modals when fullscreen ends (#3149)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user