Skip to content

Commit

Permalink
Fix field not validating after re-mount (#3566, #3500) (#3909)
Browse files Browse the repository at this point in the history
* Field not validating after re-mount (#3566)

* improve parameter name
  • Loading branch information
viljark authored and erikras committed Mar 23, 2018
1 parent 2b21f8f commit 9cb8816
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/createReduxForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,9 @@ const createReduxForm = (structure: Structure<*, *>) => {
if (!this.fieldCounts[name]) {
delete this.fieldValidators[name]
delete this.fieldWarners[name]
this.lastFieldValidatorKeys = this.lastFieldValidatorKeys.filter(
key => key !== name
)
}
} else {
unregisterField(name, false)
Expand Down

0 comments on commit 9cb8816

Please sign in to comment.