@snack-uikit/fields 0.20.7 → 0.20.8-preview-a6b157cc.0
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,7 +114,9 @@ export const FieldSlider = forwardRef((_a, ref) => {
|
|
|
114
114
|
handleChange(mark);
|
|
115
115
|
};
|
|
116
116
|
const handleTextValueChange = () => {
|
|
117
|
-
const
|
|
117
|
+
const parsedValue = parseInt(textFieldInputValue);
|
|
118
|
+
const actualMin = parseInt(String(getMarkValue(min)));
|
|
119
|
+
const textFieldNumValue = textFieldInputValue ? parsedValue : actualMin;
|
|
118
120
|
if (Number.isNaN(textFieldNumValue)) {
|
|
119
121
|
return;
|
|
120
122
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Fields",
|
|
7
|
-
"version": "0.20.
|
|
7
|
+
"version": "0.20.8-preview-a6b157cc.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@snack-uikit/locale": "*"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "1987147ed600b424330ed25eedb83e7b3fc96904"
|
|
63
63
|
}
|
|
@@ -204,7 +204,10 @@ export const FieldSlider = forwardRef<HTMLInputElement, FieldSliderProps>(
|
|
|
204
204
|
};
|
|
205
205
|
|
|
206
206
|
const handleTextValueChange = () => {
|
|
207
|
-
const
|
|
207
|
+
const parsedValue = parseInt(textFieldInputValue);
|
|
208
|
+
const actualMin = parseInt(String(getMarkValue(min)));
|
|
209
|
+
|
|
210
|
+
const textFieldNumValue = textFieldInputValue ? parsedValue : actualMin;
|
|
208
211
|
|
|
209
212
|
if (Number.isNaN(textFieldNumValue)) {
|
|
210
213
|
return;
|