Revert "Fix NumberInput when displayValue is NaN"

This commit is contained in:
Michael Jackson 2016-08-09 09:31:42 -07:00 committed by GitHub
parent 0de081b365
commit 9d59d0d59a
1 changed files with 1 additions and 3 deletions

View File

@ -31,10 +31,8 @@ class NumberTextInput extends React.Component {
const { value } = this.state
const displayValue = this.props.formatNumber(value)
const inputValue = isNaN(displayValue) ? 0 : displayValue
return (
<input {...this.props} type="text" value={inputValue} onChange={this.handleChange}/>
<input {...this.props} type="text" value={displayValue} onChange={this.handleChange}/>
)
}
}