Merge pull request #2027 from SergioCrisostomo/fix-precision

Check if isNaN so we don't ignore value of zero
This commit is contained in:
Aresn 2017-10-08 22:16:01 -05:00 committed by GitHub
commit a50c02726f

View file

@ -220,7 +220,7 @@
},
setValue (val) {
// step precision
if (this.precision) val = Number(Number(val).toFixed(this.precision));
if (!isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision));
this.$nextTick(() => {
this.currentValue = val;