Hiding results element when told to display an empty expression
This commit is contained in:
1 parent
8cc2f29aec
commit
22ade8846d
1 file changed
+3
-2
+3
-2
@@ -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'))
|
||||
|
||||
Reference in new issue
Block a user