Commit 38a3d11f29f670d35c51362af420ed35478c6024
Committed by
GitHub
Merge pull request #3400 from 2hu12/patch-1
Fix race condition for changing "currentValue"
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/slider/slider.vue
... | ... | @@ -169,7 +169,7 @@ |
169 | 169 | watch: { |
170 | 170 | value (val) { |
171 | 171 | val = this.checkLimits(Array.isArray(val) ? val : [val]); |
172 | - if (val[0] !== this.currentValue[0] || val[1] !== this.currentValue[1]) { | |
172 | + if (!this.dragging && (val[0] !== this.currentValue[0] || val[1] !== this.currentValue[1])) { | |
173 | 173 | this.currentValue = val; |
174 | 174 | } |
175 | 175 | }, | ... | ... |