Skip to content
Permalink
Browse files

fix(MdField): Consider number `0` as hasValue (#1407)

fix #1406
  • Loading branch information...
VdustR authored and marcosmoura committed Jan 16, 2018
1 parent 13ff8b3 commit d026496147446be6aa68767ad25485183c21daca
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/components/MdField/MdField.vue
@@ -70,7 +70,7 @@
},
computed: {
stringValue () {
return this.MdField.value && this.MdField.value.toString()
return (this.MdField.value || this.MdField.value === 0) && this.MdField.value.toString()
},
hasCounter () {
return this.mdCounter && (this.MdField.maxlength || this.MdField.counter)

0 comments on commit d026496

Please sign in to comment.
You can’t perform that action at this time.