Merge pull request #3400 from 2hu12/patch-1

Fix race condition for changing "currentValue"
This commit is contained in:
Aresn 2019-01-07 17:36:12 +08:00 committed by GitHub
commit 38a3d11f29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@
watch: {
value (val) {
val = this.checkLimits(Array.isArray(val) ? val : [val]);
if (val[0] !== this.currentValue[0] || val[1] !== this.currentValue[1]) {
if (!this.dragging && (val[0] !== this.currentValue[0] || val[1] !== this.currentValue[1])) {
this.currentValue = val;
}
},