Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass all available arguments from redux-form to addValidator #30

Merged
merged 1 commit into from
Mar 11, 2018

Conversation

fantua
Copy link
Contributor

@fantua fantua commented Mar 9, 2018

Redux-form validate method provides 4 arguments:

validate : (value, allValues, props, name) => error [optional]

They all should be passed to addValidator for implementing custom validation logic.

cc @gtournie

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a102de5 on fantua:addvalidator-props into 7995392 on gtournie:master.

@gtournie gtournie merged commit 54d6b11 into gtournie:master Mar 11, 2018
@fantua fantua deleted the addvalidator-props branch March 11, 2018 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants