Fixed #2104 - [BUG] Range slider cannot be set to [min, min]

pull/2587/head
Tuğçe Küçükoğlu 2022-05-31 12:37:18 +03:00
parent dd9d3c85e9
commit 9248ab8ea9
1 changed files with 1 additions and 1 deletions

View File

@ -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;