We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 754439d commit 541ba8aCopy full SHA for 541ba8a
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);
1143
- if (props.value !== null && props.value !== newValue) {
1144
+ if (props.value !== null && currentValue !== newValue) {
1145
updateModel(null, newValue);
1146
+ handleOnChange(null, currentValue, newValue);
1147
}
1148
};
1149
0 commit comments