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) {
|
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()
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user