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

Avoid to validate fields that has not validation #49

Open
thewebartisan7 opened this issue Oct 14, 2020 · 0 comments
Open

Avoid to validate fields that has not validation #49

thewebartisan7 opened this issue Oct 14, 2020 · 0 comments

Comments

@thewebartisan7
Copy link

When you have input that has not validation, for example an input checkbox "Remember me", right now it make it valid and hightlight in green when you do validation, example:

Screenshot 2020-10-14 at 08 55 17

Why not just skip this fields that has not any validation found?

This could be easy done in init() function adding a check if fns is empty, example:

            if(fns.length) return input.pristine = {input, validators: fns, params, messages, self};

What do you think?

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

No branches or pull requests

1 participant