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

validateForm with props #63

Open
sashberd opened this issue Jul 29, 2019 · 0 comments
Open

validateForm with props #63

sashberd opened this issue Jul 29, 2019 · 0 comments

Comments

@sashberd
Copy link

sashberd commented Jul 29, 2019

Hi,
I faced with problem when I used you lib.
E.g. I have to do validate redux form infront of some props values:

 const { form, quantity, totalBought, t } = props;

validateForm({
        [`fieldId${form}`]: numericality({
          greaterThan: quantity - totalBought,
          message: t('error'),
        }),
      });

in regular redux form validation I get props from validate function:

 reduxForm({
    validate: (values, props) => {...})})

In your lib examples, as I can see, the validate object cannot be feed with component props or I missed something?
Thanks

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

No branches or pull requests

1 participant