diginet-core-ui 1.4.52-beta.2 → 1.4.52-beta.4
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.
|
@@ -114,16 +114,17 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
114
114
|
selectionStart
|
|
115
115
|
}
|
|
116
116
|
} = inputRef;
|
|
117
|
+
let number = convertMoneyToNumber(vl, isNumber);
|
|
117
118
|
if (fixedDecimalDigit && !!decimalDigit) {
|
|
118
119
|
var _strVal$split;
|
|
119
120
|
const strVal = String(vl);
|
|
120
121
|
const isDecimalNum = strVal.indexOf('.') > -1 && (((_strVal$split = strVal.split('.')) === null || _strVal$split === void 0 ? void 0 : _strVal$split[1]) || '').length >= decimalDigit;
|
|
121
122
|
if (isDecimalNum) {
|
|
122
|
-
const
|
|
123
|
+
const replacingVal = vl.replace(thousandSymbol, '');
|
|
124
|
+
const val = Number(replacingVal).toFixed(decimalDigit);
|
|
123
125
|
number = String(val);
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
|
-
let number = convertMoneyToNumber(vl, isNumber);
|
|
127
128
|
|
|
128
129
|
// if (disabledNegative && Number(number || 0) < 0) number = clamp(number, min, max);
|
|
129
130
|
// if (typeof max !== 'undefined' && Number(number) > max) number = Math.min(number, max);
|