Merge pull request #2587 from tugcekucukoglu/min-range

Fixed #2104 - [BUG] Range slider cannot be set to [min, min]
pull/2590/head
Tuğçe Küçükoğlu 2022-05-31 12:37:44 +03:00 committed by GitHub
commit 63984a7e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;