Hiding results element when told to display an empty expression

This commit is contained in:
Jeff Avallone 2014-12-16 10:22:49 -05:00
parent 8cc2f29aec
commit 22ade8846d

View File

@ -54,9 +54,10 @@ export default class Regexper {
}
showExpression(expression) {
if (expression !== '') {
this.field.value = expression;
this.setState('');
if (expression !== '') {
this.setState('is-loading');
this.renderRegexp(expression.replace(/\n/g, '\\n'))