diginet-core-ui 1.4.55-beta.8 → 1.4.55-beta.8.2
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.
|
@@ -172,8 +172,8 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
172
172
|
var _e$target$value;
|
|
173
173
|
let valueT = (_e$target$value = e.target.value) !== null && _e$target$value !== void 0 ? _e$target$value : e.value;
|
|
174
174
|
if (disabledNegative && Number(valueT || 0) < 0) valueT = 0;
|
|
175
|
-
if ((min || min === 0) &&
|
|
176
|
-
if ((max || max === 0) &&
|
|
175
|
+
if ((min || min === 0) && Number(valueT) < min) valueT = min;
|
|
176
|
+
if ((max || max === 0) && Number(valueT) > max) valueT = max;
|
|
177
177
|
valueT = parseNumberToMoney(valueT);
|
|
178
178
|
const returnValue = convertMoneyToNumber(valueT);
|
|
179
179
|
e.value = globalRef.current.value = !isNaN(parseFloat(returnValue)) ? parseFloat(returnValue) : null;
|