Skip to content

Commit

Permalink
fix initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
terkelg committed Feb 24, 2018
1 parent 2ca0476 commit e40423e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/elements/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ const { cursor } = require('sisteransi');
const { style: stl, clear } = require('../util');

class TextPrompt extends Prompt {
constructor({ message, cursor, initial = '', style = 'default' }) {
constructor({ message, cursor, initial, style = 'default' }) {
super();

this.msg = message;
this.value = initial;
this.value = initial || '';

this.initialValue = this.value;
this.transform = stl.render(style);
Expand Down

0 comments on commit e40423e

Please sign in to comment.