Skip to content

Commit

Permalink
Fixed #2136
Browse files Browse the repository at this point in the history
  • Loading branch information
DorukKantarcioglu authored Aug 27, 2021
1 parent 5eedd1e commit baec0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ export class InputNumber extends Component {
}

const newValue = this.validateValue(this.props.value);
if (this.props.value !== newValue) {
if (this.props.value !== null && this.props.value !== newValue) {
this.updateModel(null, newValue);
}
}
Expand All @@ -942,7 +942,7 @@ export class InputNumber extends Component {
const newValue = this.validateValue(this.props.value);
this.updateInputValue(newValue);

if (this.props.value !== newValue) {
if (this.props.value !== null && this.props.value !== newValue) {
this.updateModel(null, newValue);
}
}
Expand Down

0 comments on commit baec0d6

Please sign in to comment.