diff --git a/src/components/slider/slider.vue b/src/components/slider/slider.vue index c911f52e..9085e747 100644 --- a/src/components/slider/slider.vue +++ b/src/components/slider/slider.vue @@ -151,7 +151,7 @@ startX: 0, currentX: 0, startPos: 0, - oldValue: val, + oldValue: [...val], valueIndex: { min: 0, max: 1, @@ -328,9 +328,9 @@ else newPos = this.checkLimits([this.minPosition, newPos])[1]; const modulus = this.handleDecimal(newPos,this.step); - const value = [...this.currentValue]; + const value = this.currentValue; value[index] = newPos - modulus; - this.currentValue = value; + this.currentValue = [...value]; if (!this.dragging) { if (this.currentValue[index] !== this.oldValue[index]) {