From f16328ab8184d277a4e2d5e36792ecbc78c2a444 Mon Sep 17 00:00:00 2001 From: Michael Kucinski Date: Fri, 1 Jan 2021 15:30:53 -0500 Subject: [PATCH] fix: allow for negative and positive slider values --- src/components/slider/Slider.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/slider/Slider.vue b/src/components/slider/Slider.vue index a35e59e92..886d0842f 100755 --- a/src/components/slider/Slider.vue +++ b/src/components/slider/Slider.vue @@ -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;