Update valid prop on MultiCheckboxInput to return true if the field is optional

This commit is contained in:
leigh-mil
2019-11-22 09:33:39 -05:00
parent 62cdcbe6dc
commit 20a2abd36b
2 changed files with 3 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ export default {
default: () => [],
},
initialOtherValue: String,
optional: Boolean,
},
data: function() {
@@ -45,7 +46,7 @@ export default {
computed: {
valid: function() {
return this.showValid
return this.optional || this.showValid
},
},
}