1 parent 754439d commit 0b56bf8Copy full SHA for 0b56bf8
1 file changed
components/lib/inputnumber/InputNumber.js
@@ -1135,12 +1135,15 @@ export const InputNumber = React.memo(
1135
const changeValue = () => {
1136
const val = validateValueByLimit(props.value);
1137
1138
+ const currentValue = inputRef.current.value;
1139
+
1140
updateInputValue(props.format ? val : replaceDecimalSeparator(val));
1141
1142
const newValue = validateValue(props.value);
-
- if (props.value !== null && props.value !== newValue) {
1143
1144
+ if (props.value !== null && currentValue !== newValue) {
1145
updateModel(null, newValue);
1146
+ handleOnChange(null, currentValue, newValue);
1147
}
1148
};
1149
0 commit comments