diginet-core-ui 1.4.58-beta.1 → 1.4.58-beta.1.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.
|
@@ -195,7 +195,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
195
195
|
const exceptionValue = ['-', '.', ',', '', null, NaN];
|
|
196
196
|
if (!exceptionValue.includes(limitValueT)) {
|
|
197
197
|
const target = e.target;
|
|
198
|
-
if (disabledNegative && eval(limitValueT)
|
|
198
|
+
if (disabledNegative && eval(limitValueT) < 0) {
|
|
199
199
|
limitValueT = 0;
|
|
200
200
|
_onInput({
|
|
201
201
|
...e,
|
|
@@ -203,7 +203,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
203
203
|
}, true);
|
|
204
204
|
target.value = clamp(limitValueT, min, max);
|
|
205
205
|
}
|
|
206
|
-
if ((min || min === 0) && eval(limitValueT)
|
|
206
|
+
if ((min || min === 0) && eval(limitValueT) < min) {
|
|
207
207
|
limitValueT = min;
|
|
208
208
|
_onInput({
|
|
209
209
|
...e,
|
|
@@ -211,7 +211,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
211
211
|
}, true);
|
|
212
212
|
target.value = clamp(limitValueT, min, max);
|
|
213
213
|
}
|
|
214
|
-
if (max && eval(limitValueT)
|
|
214
|
+
if (max && eval(limitValueT) > max) {
|
|
215
215
|
limitValueT = max;
|
|
216
216
|
_onInput({
|
|
217
217
|
...e,
|