Skip to content

Commit d026496

Browse files
VdustRmarcosmoura
authored andcommitted
fix(MdField): Consider number 0 as hasValue (#1407)
fix #1406
1 parent 13ff8b3 commit d026496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MdField/MdField.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
},
7171
computed: {
7272
stringValue () {
73-
return this.MdField.value && this.MdField.value.toString()
73+
return (this.MdField.value || this.MdField.value === 0) && this.MdField.value.toString()
7474
},
7575
hasCounter () {
7676
return this.mdCounter && (this.MdField.maxlength || this.MdField.counter)

0 commit comments

Comments
 (0)