diginet-core-ui 1.4.50-beta.2 → 1.4.50-beta.3
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.
|
@@ -138,7 +138,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
138
138
|
pos.current = selectionStart + (number.toString().length - 1 === vl.toString().length ? 1 : 0);
|
|
139
139
|
}
|
|
140
140
|
return number;
|
|
141
|
-
}, [decimalSymbol, max, value]);
|
|
141
|
+
}, [decimalSymbol, max, value, decimalDigit]);
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Convert money to format number
|
|
@@ -313,7 +313,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
313
313
|
// setValue(parseNumberToMoney(valueProps?.toString().replace(regexValidNumber, ''), true));
|
|
314
314
|
setValue(parseNumberToMoney((_valueProps = valueProps) === null || _valueProps === void 0 ? void 0 : _valueProps.toString().replace(regexValidNumber, ''), true));
|
|
315
315
|
}
|
|
316
|
-
}, [valueProps]);
|
|
316
|
+
}, [valueProps, decimalDigit]);
|
|
317
317
|
useEffect(() => {
|
|
318
318
|
setError(errorProp);
|
|
319
319
|
}, [errorProp]);
|