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

Commit

Permalink
fix(range-input): fix range input min and max values fallbacks (#835)
Browse files Browse the repository at this point in the history
Fixes #833
  • Loading branch information
Yannick Croissant authored Aug 7, 2020
1 parent 9bb117c commit 0e900ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/RangeInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ export default {
const { min: minRange, max: maxRange } = this.state.range;
return {
min: minValue !== -Infinity && minValue !== minRange ? minValue : null,
max: maxValue !== Infinity && maxValue !== maxRange ? maxValue : null,
min:
minValue !== -Infinity && minValue !== minRange
? minValue
: undefined,
max:
maxValue !== Infinity && maxValue !== maxRange ? maxValue : undefined,
};
},
},
Expand Down

0 comments on commit 0e900ef

Please sign in to comment.