diginet-core-ui 1.4.52-beta.10 → 1.4.52-beta.12
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.
|
@@ -146,7 +146,7 @@ const MoneyInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference
|
|
|
146
146
|
if (decimal && decimal.length > decimalDigit) {
|
|
147
147
|
if (decimalDigit) {
|
|
148
148
|
decimal = decimal.slice(0, decimalDigit);
|
|
149
|
-
return number + decimalSymbol + decimal;
|
|
149
|
+
return parseValueWithFix(number + decimalSymbol + decimal);
|
|
150
150
|
} else {
|
|
151
151
|
return number;
|
|
152
152
|
}
|
|
@@ -359,11 +359,12 @@ const MoneyInput = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((inProps, reference
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
}, [disabled, readOnly, value, prefix, suffix]);
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
362
|
+
|
|
363
|
+
// useEffect(() => {
|
|
364
|
+
// const valueInput = inputRef.current.value;
|
|
365
|
+
// inputRef.current.value = getValueWithDecimal(valueInput);
|
|
366
|
+
// }, [decimalDigit]);
|
|
367
|
+
// /* End handler */
|
|
367
368
|
|
|
368
369
|
useImperativeHandle(reference, () => {
|
|
369
370
|
const currentRef = ref.current || {};
|