@vertigis/react-ui 13.3.0 → 13.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,6 +105,10 @@ const NumberInput = forwardRef(function NumberInput({ onChange, onBlur, value, d
|
|
|
105
105
|
}
|
|
106
106
|
setNumericValue(correctValue(value));
|
|
107
107
|
}
|
|
108
|
+
else {
|
|
109
|
+
setTextValue("");
|
|
110
|
+
setNumericValue(NaN);
|
|
111
|
+
}
|
|
108
112
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- It's intentional to omit numericValue. We only want this to run when the incoming value changes, not when numericValue changes in handleChange().
|
|
109
113
|
}, [value, formatNumber, correctValue]);
|
|
110
114
|
const handleChange = useCallback(event => {
|