mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-24 07:51:34 +02:00
make a static dialog close again if background is clicked
This commit is contained in:
parent
3a2cf87791
commit
a0c2a39dc7
@ -217,9 +217,13 @@ class ModalManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
closeAll() {
|
closeAll() {
|
||||||
const modalsToClose = [...this._modals, this._priorityModal];
|
const modalsToClose = this._modals.slice();
|
||||||
this._modals = [];
|
this._modals = [];
|
||||||
this._priorityModal = null;
|
|
||||||
|
if (this._priorityModal) {
|
||||||
|
modalsToClose.push(this._priorityModal);
|
||||||
|
this._priorityModal = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (this._staticModal && modalsToClose.length === 0) {
|
if (this._staticModal && modalsToClose.length === 0) {
|
||||||
modalsToClose.push(this._staticModal);
|
modalsToClose.push(this._staticModal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user