Skip to content

Commit

Permalink
Fix 0 issue in submit too
Browse files Browse the repository at this point in the history
  • Loading branch information
terkelg committed Jun 28, 2018
1 parent 62e10ee commit 67d8daf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/elements/number.js
Expand Up @@ -83,7 +83,8 @@ class NumberPrompt extends Prompt {
}

submit() {
this.value = this.value || this.initial;
let x = this.value;
this.value = x !== void 0 ? x : this.initial
this.done = true;
this.aborted = false;
this.fire();
Expand Down

0 comments on commit 67d8daf

Please sign in to comment.