intelicoreact 1.4.71 → 1.4.72
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.
|
@@ -150,7 +150,7 @@ function RangeSlider(_ref) {
|
|
|
150
150
|
switch (type) {
|
|
151
151
|
case "from":
|
|
152
152
|
const getValidatedFromValue = value => {
|
|
153
|
-
if (value < min) {
|
|
153
|
+
if (!value || value < min) {
|
|
154
154
|
value = min;
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -182,7 +182,7 @@ function RangeSlider(_ref) {
|
|
|
182
182
|
|
|
183
183
|
case "to":
|
|
184
184
|
const getValidatedToValue = value => {
|
|
185
|
-
if (value > max) {
|
|
185
|
+
if (!value || value > max) {
|
|
186
186
|
value = max;
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -255,12 +255,6 @@ function RangeSlider(_ref) {
|
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
const onRangeInputBlur = (e, type) => {
|
|
258
|
-
var _e$target;
|
|
259
|
-
|
|
260
|
-
if (!(e !== null && e !== void 0 && (_e$target = e.target) !== null && _e$target !== void 0 && _e$target.value)) {
|
|
261
|
-
onRangeChange(type, type === "from" ? min : max, false, true);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
258
|
setIsInputFocused(type, false);
|
|
265
259
|
};
|
|
266
260
|
|