fix: allow for negative and positive slider values

pull/827/head
Michael Kucinski 2021-01-01 15:30:53 -05:00
parent 2f40b9c7cf
commit f16328ab81
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;