Commit 38a3d11f29f670d35c51362af420ed35478c6024

Authored by Aresn
Committed by GitHub
2 parents e128e287 f2d08714

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,7 +169,7 @@
169 watch: { 169 watch: {
170 value (val) { 170 value (val) {
171 val = this.checkLimits(Array.isArray(val) ? val : [val]); 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 this.currentValue = val; 173 this.currentValue = val;
174 } 174 }
175 }, 175 },