Hiding results element when told to display an empty expression
This commit is contained in:
		
							parent
							
								
									8cc2f29aec
								
							
						
					
					
						commit
						22ade8846d
					
				| @ -54,9 +54,10 @@ export default class Regexper { | ||||
|   } | ||||
| 
 | ||||
|   showExpression(expression) { | ||||
|     if (expression !== '') { | ||||
|       this.field.value = expression; | ||||
|     this.field.value = expression; | ||||
|     this.setState(''); | ||||
| 
 | ||||
|     if (expression !== '') { | ||||
|       this.setState('is-loading'); | ||||
| 
 | ||||
|       this.renderRegexp(expression.replace(/\n/g, '\\n')) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user