From baec0d665e3310cbd8e35b51de3637c76a4881d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Doruk=20Kantarc=C4=B1o=C4=9Flu?= <63489557+DorukKantarcioglu@users.noreply.github.com> Date: Fri, 27 Aug 2021 15:48:55 +0300 Subject: [PATCH] Fixed #2136 --- src/components/inputnumber/InputNumber.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/inputnumber/InputNumber.js b/src/components/inputnumber/InputNumber.js index eb7e3bfafe..59c463c879 100644 --- a/src/components/inputnumber/InputNumber.js +++ b/src/components/inputnumber/InputNumber.js @@ -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); } } @@ -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); } }