Skip to content

Commit

Permalink
Merge pull request #2587 from tugcekucukoglu/min-range
Browse files Browse the repository at this point in the history
Fixed #2104 - [BUG] Range slider cannot be set to [min, min]
  • Loading branch information
tugcekucukoglu authored May 31, 2022
2 parents df99553 + 9248ab8 commit 63984a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export default {
return 0;
},
rangeEndPosition() {
if (this.modelValue && this.modelValue[1])
if (this.modelValue && this.modelValue.length === 2)
return (this.modelValue[1] > this.max ? 100 : this.modelValue[1] - this.min) * 100 / (this.max - this.min);
else
return 100;
Expand Down

0 comments on commit 63984a7

Please sign in to comment.