Merge pull request #5003 from wormwlrm/issue-5002

Fix #5002: Cannot set a Slider with InputNumber value as 0 by using InputNumber
This commit is contained in:
Aresn 2018-12-17 11:04:52 +08:00 committed by GitHub
commit 4c006ad7ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -379,7 +379,7 @@
}, },
handleInputChange (val) { handleInputChange (val) {
this.currentValue = [val || this.min, this.currentValue[1]]; this.currentValue = [val === 0 ? 0 : val || this.min, this.currentValue[1]];
this.emitChange(); this.emitChange();
}, },