Skip to content

Flag when validation has validated for the first time. #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bauerca
Copy link

@bauerca bauerca commented Jul 13, 2015

We added this as a precursor to some work upstream in react-formal. We need the extra bit of state that says a form schema has not ever been validated.

@jquense
Copy link
Owner

jquense commented Jul 13, 2015

The change here looks fine but I am a interested what it might facilitate in react-formal. Since errors can be completely controlled in react-formal (essentially bypassing the Validator) I would be concerned that this isn't going to actually solve your use case 100%

@bauerca
Copy link
Author

bauerca commented Jul 13, 2015

You're right; I guess it's for convenience more than necessity. We could listen for onValidate on the Form and manage our own hasValidated flag, but that could get repetitive.

Or, we could write a wrapper component for Form that takes care of that bit of state. Hm, might try that and get back to ya.

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.

2 participants