Merge pull request #827 from noamichael/feature-negative-slider

Slider: handle mixed-sign min/max attributes when positioning handle
pull/880/head
Cagatay Civici 2021-01-20 13:37:55 +03:00 committed by GitHub
commit 624dcd7558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -275,9 +275,7 @@ export default {
return {'bottom': this.handlePosition + '%'};
},
handlePosition() {
if (this.modelValue === 0)
return 0;
else if (this.modelValue < this.min)
if (this.modelValue < this.min)
return 0;
else if (this.modelValue > this.max)
return 100;