Skip to content

Commit

Permalink
Fix $anyError
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jun 1, 2018
1 parent 55fac61 commit 9e15b22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Expand Up @@ -96,7 +96,9 @@ const validationGetters = {
return this.$dirty && !this.$pending && this.$invalid
},
$anyError() {
return this.$anyDirty && !this.$pending && this.$invalid
if (this.$error) return true

return this.nestedKeys.some((key) => this.refProxy(key).$anyError)
},
$pending() {
return (
Expand Down

0 comments on commit 9e15b22

Please sign in to comment.