Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Skip if current property is not the real reason for validation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fastner committed May 12, 2016
1 parent 5ed437e commit 98fe1f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/VuexValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ function propertyValidator(state)
if (!self)
return all

// It is possible, that a validation fails without being this property as reason
if (self.fields.indexOf(property) < 0)
return all

if (all)
return all.concat(self)

Expand Down

0 comments on commit 98fe1f8

Please sign in to comment.