Skip to content

Commit 1b6d571

Browse files
committed
Merge branch 'master' into production
2 parents 7a65627 + 91fcf65 commit 1b6d571

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/formGenerator.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ export default {
288288
289289
this.$refs.children.forEach(child => {
290290
if (child && isFunction(child.validate)) {
291-
fields.push(child)
292-
results.push(child.validate(true))
291+
if (child.$refs.child) {
292+
fields.push(child.$refs.child)
293+
results.push(child.validate(true))
294+
}
293295
}
294296
})
295297

0 commit comments

Comments
 (0)