Fixed #2104 - [BUG] Range slider cannot be set to [min, min]
parent
dd9d3c85e9
commit
9248ab8ea9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue