bouncer icon indicating copy to clipboard operation
bouncer copied to clipboard

Add disableValidateOnXxx settings

Open er314 opened this issue 5 years ago • 0 comments

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 https://github.com/cferdinandi/bouncer/pull/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.

er314 avatar Aug 24 '20 20:08 er314