1
0
mirror of synced 2024-11-22 05:16:05 +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) {
for (let field of this.fields) {
this.$store.commit(`${this.m}setFieldValue`, {
field: field.name,
value: values[field.name],
form: this.name
})
if (field.type !== 'submit') {
this.$store.commit(`${this.m}setFieldValue`, {
field: field.name,
value: values[field.name],
form: this.name
})
}
}
this.updateFormValidation()
},