Skip to content

Commit

Permalink
Merge pull request #1 from kevinkosterr/master
Browse files Browse the repository at this point in the history
fix(validate): fix .bind() is undefined
kevinkosterr authored Nov 12, 2024
2 parents 4878f27 + 915abde commit 2a7787b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formGenerator.vue
Original file line number Diff line number Diff line change
@@ -198,7 +198,7 @@ export default {
this.$refs.children.forEach(child => {
if (toValidate(child)) {
child.validate().then((errors) => {
child.validate().then(function (errors) {
if (errors[0]) {
Object.keys(this.errors)
.filter((key) => {
@@ -211,7 +211,7 @@ export default {
error: error[0]
})
}
})
}.bind(this))
}
})
},

0 comments on commit 2a7787b

Please sign in to comment.