foxhound87 / mobx-react-form

Reactive MobX Form State Management
https://foxhound87.github.io/mobx-react-form
MIT License
1.09k stars 129 forks source link

Stop validation on error across validator plugins #576

Closed riceyeh closed 2 years ago

riceyeh commented 3 years ago

The most often used validation I use for a field is 'required' from dvr. Then I use vjf for complicated validations. I like to use both the dvr and vjf plugins together for a field. This is allowed. However, vjf always runs before dvr. I suggest to add an option 'validationOrder' to specify the order of running validation among plugins, and also another option 'stopValidationOnError' to prevent other plugins from running after a plugin fails.

foxhound87 commented 2 years ago

:tada: This issue has been resolved in version 3.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: