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,12 +79,14 @@ export default {
}, },
hydrate (values) { hydrate (values) {
for (let field of this.fields) { for (let field of this.fields) {
if (field.type !== 'submit') {
this.$store.commit(`${this.m}setFieldValue`, { this.$store.commit(`${this.m}setFieldValue`, {
field: field.name, field: field.name,
value: values[field.name], value: values[field.name],
form: this.name form: this.name
}) })
} }
}
this.updateFormValidation() this.updateFormValidation()
}, },
update (change) { update (change) {