1
0
mirror of synced 2024-11-22 21:36:04 +03:00

Removes submit buttons from values

This commit is contained in:
Justin Schroeder 2018-02-01 12:23:39 -05:00
parent 1263f4eee3
commit 1ecf7411f6
2 changed files with 8 additions and 6 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -79,11 +79,13 @@ export default {
}, },
hydrate (values) { hydrate (values) {
for (let field of this.fields) { for (let field of this.fields) {
this.$store.commit(`${this.m}setFieldValue`, { if (field.type !== 'submit') {
field: field.name, this.$store.commit(`${this.m}setFieldValue`, {
value: values[field.name], field: field.name,
form: this.name value: values[field.name],
}) form: this.name
})
}
} }
this.updateFormValidation() this.updateFormValidation()
}, },