Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 0e900ef

Browse files
author
Yannick Croissant
authored
fix(range-input): fix range input min and max values fallbacks (#835)
Fixes #833
1 parent 9bb117c commit 0e900ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/RangeInput.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,12 @@ export default {
122122
const { min: minRange, max: maxRange } = this.state.range;
123123
124124
return {
125-
min: minValue !== -Infinity && minValue !== minRange ? minValue : null,
126-
max: maxValue !== Infinity && maxValue !== maxRange ? maxValue : null,
125+
min:
126+
minValue !== -Infinity && minValue !== minRange
127+
? minValue
128+
: undefined,
129+
max:
130+
maxValue !== Infinity && maxValue !== maxRange ? maxValue : undefined,
127131
};
128132
},
129133
},

0 commit comments

Comments
 (0)