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

Add disableValidateOnXxx settings #59

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

Conversation

er314
Copy link

@er314 er314 commented Aug 24, 2020

What : New config. settings, for allowing to selectively disable one or more event handlers, on blur, and/or on input, and/or on click, and/or on submit.

Rationale : Allow to solve some use cases :

  • disableValidateOnInput
    Allow to disable the validation & error refresh on each user keystroke.
    Showing & refreshing errors on each user keystroke may be seen as annoying to some users, so the ability to disable it can be useful. (this is the use case which I have a use for).

  • disableValidateOnBlur, disableValidateOnSubmit
    See pull request Add validateOnBlur, validateOnSubmit settings and publicAPIs.showError and publicAPIs.removeError` #55 for use cases.

  • Another example use case is when willing to have minimal interference towards user, by performing client-side validation only when user submits the form -> this can be configured with the combination of disableValidateOnInput + disableValidateOnBlur + disableValidateOnClick.

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.

1 participant