Fix wonky form validation

This commit is contained in:
richard-dds
2019-06-13 13:18:18 -04:00
parent 75d56b4bd9
commit a6c015753a
4 changed files with 30 additions and 12 deletions

View File

@@ -25,8 +25,8 @@ export default {
},
handleFieldMount: function(event) {
const { name, optional } = event
this.fields[name] = optional
const { name, optional, valid } = event
this.fields[name] = optional || valid
},
validateForm: function() {