Prevent doodle from closing on outside click (#2047)
Adds a new property to the dispatch, which when set to true, replaces the onClose handler with a no-op, preventing the modal from closing. Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com> Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
		@@ -46,7 +46,7 @@ const mapDispatchToProps = (dispatch) => ({
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  onDoodleOpen() {
 | 
			
		||||
    dispatch(openModal('DOODLE', { noEsc: true }));
 | 
			
		||||
    dispatch(openModal('DOODLE', { noEsc: true, noClose: true }));
 | 
			
		||||
  },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user