Skip to content

Commit

Permalink
fix(validate): fix .bind() is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkosterr committed Nov 12, 2024
1 parent 4878f27 commit 915abde
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
Expand Up @@ -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) => {
Expand All @@ -211,7 +211,7 @@ export default {
error: error[0]
})
}
})
}.bind(this))
}
})
},
Expand Down

0 comments on commit 915abde

Please sign in to comment.