Removes submit buttons from values
This commit is contained in:
parent
1263f4eee3
commit
1ecf7411f6
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -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()
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user