Skip to content

Commit

Permalink
fixed #869 bug in v6
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed Apr 27, 2016
1 parent 00a6186 commit b12c3a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reduxForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ const createReduxForm =
if (asyncValidate) {
const valuesToValidate = isSubmitting ? values : setIn(values, name, value)
const syncValidationPasses = isSubmitting || !getIn(syncErrors, name)
const isBlurField = !isSubmitting && (!asyncBlurFields || ~asyncBlurFields.indexOf(name))
const isBlurField = !isSubmitting &&
(!asyncBlurFields || ~asyncBlurFields.indexOf(name.replace(/\[[0-9]+\]/g, '[]')))

// if blur validating, only run async validate if sync validation passes and either no
// blur fields are passed or the field that has blurred is listed
Expand Down

0 comments on commit b12c3a3

Please sign in to comment.