Commit af615212f490a8714aff66311098b352f4ac4665
Committed by
GitHub
Merge pull request #3531 from SergioCrisostomo/fix-3468
Correct values passed to checkLimits method
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/slider/slider.vue
... | ... | @@ -332,8 +332,8 @@ |
332 | 332 | changeButtonPosition (newPos, forceType) { |
333 | 333 | const type = forceType || this.pointerDown; |
334 | 334 | const index = type === 'min' ? 0 : 1; |
335 | - if (type === 'min') newPos = this.checkLimits([newPos, this.maxPosition])[0]; | |
336 | - else newPos = this.checkLimits([this.minPosition, newPos])[1]; | |
335 | + if (type === 'min') newPos = this.checkLimits([newPos, this.max])[0]; | |
336 | + else newPos = this.checkLimits([this.min, newPos])[1]; | |
337 | 337 | |
338 | 338 | const modulus = this.handleDecimal(newPos,this.step); |
339 | 339 | const value = this.currentValue; | ... | ... |