Skip to content

Commit

Permalink
fix(MdField): Consider number 0 as hasValue (#1407)
Browse files Browse the repository at this point in the history
fix #1406
  • Loading branch information
VdustR authored and marcosmoura committed Jan 16, 2018
1 parent 13ff8b3 commit d026496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdField/MdField.vue
Expand Up @@ -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)
Expand Down

0 comments on commit d026496

Please sign in to comment.