diff --git a/src/components/inputs/NumberInput.jsx b/src/components/inputs/NumberInput.jsx index cd497caa..5d468fed 100644 --- a/src/components/inputs/NumberInput.jsx +++ b/src/components/inputs/NumberInput.jsx @@ -139,8 +139,8 @@ class NumberInput extends React.Component { this.props.min !== undefined && this.props.max !== undefined && this.props.allowRange ) { - const value = this.state.value === undefined ? this.props.default : this.state.value; - const rangeValue = Number.isNaN(parseFloat(value, 10)) ? this.props.default : value; + const dirtyValue = this.state.dirtyValue === undefined ? this.props.default : this.state.dirtyValue + const value = this.state.value === undefined ? "" : this.state.value; return