fix: allow for negative and positive slider values
parent
2f40b9c7cf
commit
f16328ab81
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue