Skip to content

Commit

Permalink
Issue 711 update (#825)
Browse files Browse the repository at this point in the history
* do not reset input on validation error

* input.js:94 = to +=

* fix: update issue #711 fix by dangen-effy to pass eslint
  • Loading branch information
RichardHJensen authored and SBoudrias committed Jul 11, 2019
1 parent dbfe890 commit e05ae81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/inquirer/lib/prompts/input.js
Expand Up @@ -91,6 +91,8 @@ class InputPrompt extends Base {
}

onError(state) {
this.rl.line += state.value;
this.rl.cursor += state.value.length;
this.render(state.isValid);
}

Expand Down

0 comments on commit e05ae81

Please sign in to comment.