Fixes bug with v-if formulate-elements that had initial values
This commit is contained in:
parent
8581a40662
commit
d7bc86b077
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -104,7 +104,8 @@ export default {
|
||||
},
|
||||
hydrate (values) {
|
||||
for (let field of this.fields) {
|
||||
if (field.type !== 'submit') {
|
||||
console.log(`${field.name}: ${typeof this.values[field]}`)
|
||||
if (field.type !== 'submit' && typeof this.values[field.name] === 'undefined') {
|
||||
this.$store.commit(`${this.m}setFieldValue`, {
|
||||
field: field.name,
|
||||
value: values[field.name],
|
||||
|
Loading…
Reference in New Issue
Block a user