You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
make a static dialog close again if background is clicked
This commit is contained in:
@@ -217,9 +217,13 @@ class ModalManager {
|
||||
}
|
||||
|
||||
closeAll() {
|
||||
const modalsToClose = [...this._modals, this._priorityModal];
|
||||
const modalsToClose = this._modals.slice();
|
||||
this._modals = [];
|
||||
this._priorityModal = null;
|
||||
|
||||
if (this._priorityModal) {
|
||||
modalsToClose.push(this._priorityModal);
|
||||
this._priorityModal = null;
|
||||
}
|
||||
|
||||
if (this._staticModal && modalsToClose.length === 0) {
|
||||
modalsToClose.push(this._staticModal);
|
||||
|
||||
Reference in New Issue
Block a user