mirror of https://github.com/vector-im/riot-web
				
				
				
			Make modal widgets static to avoid being destroyed
Fixes https://github.com/vector-im/element-web/issues/15818pull/21833/head
							parent
							
								
									1db130b8f0
								
							
						
					
					
						commit
						c91dc55bc1
					
				| 
						 | 
				
			
			@ -64,7 +64,7 @@ export class ModalWidgetStore extends AsyncStoreWithClient<IState> {
 | 
			
		|||
                this.openSourceWidgetId = null;
 | 
			
		||||
                this.modalInstance = null;
 | 
			
		||||
            },
 | 
			
		||||
        });
 | 
			
		||||
        }, null, /* priority = */ false, /* static = */ true);
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    public closeModalWidget = (sourceWidget: Widget, data?: IModalWidgetReturnData) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue