Set prop value for empty string

This commit is contained in:
lukasmartinelli
2016-09-15 18:51:49 +02:00
parent 5f029f6870
commit 9c6eb50343
2 changed files with 2 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ render() {
style={inputStyle.input}
name={this.props.name}
placeholder={this.props.default}
value={this.props.value}
value={this.props.value ? this.props.value : ""}
onChange={this.onChange.bind(this)}
/>
</div>