christopherboss / vue-valid8

A simple form validation package made for Vue.js.
MIT License
3 stars 1 forks source link

No rule passed into vue-valid8 creates console error. #13

Open cgajate opened 8 months ago

cgajate commented 8 months ago

When creating elements dynamically that do not have any rules, cannot pass an empty string. validateAll with a scope is called but sits in pending on the promise. The rule must have any type of value but will display a console error at validateRule in validation.js.

Is it possible to check if the rule is empty and pass if no validation is necessary?

christopherboss commented 7 months ago

If you pass false to the validation, it won't try to validate anything already. Is this what you're looking for?

v-validate="false"