You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Make modal widgets static to avoid being destroyed
Fixes https://github.com/vector-im/element-web/issues/15818
This commit is contained in:
@@ -64,7 +64,7 @@ export class ModalWidgetStore extends AsyncStoreWithClient<IState> {
|
|||||||
this.openSourceWidgetId = null;
|
this.openSourceWidgetId = null;
|
||||||
this.modalInstance = null;
|
this.modalInstance = null;
|
||||||
},
|
},
|
||||||
});
|
}, null, /* priority = */ false, /* static = */ true);
|
||||||
};
|
};
|
||||||
|
|
||||||
public closeModalWidget = (sourceWidget: Widget, data?: IModalWidgetReturnData) => {
|
public closeModalWidget = (sourceWidget: Widget, data?: IModalWidgetReturnData) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user