Skip to content

Commit

Permalink
Fixed #2104 - [BUG] Range slider cannot be set to [min, min]
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed May 31, 2022
1 parent dd9d3c8 commit 9248ab8
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 9248ab8

Please sign in to comment.