isneezy / confere.js

A simple promise based javascript validation library with extras
https://isneezy.github.io/confere.js/
MIT License
1 stars 1 forks source link

Validation tends to fail when input not fiilled #9

Closed isneezy closed 7 years ago

isneezy commented 7 years ago

When set some rules tend to fail validation even when required validator is not present I think the default behavior of all validators is to pass if input is empty and only validate if data is present and empty fields validation should be dealt with the required validator (if present) <input name="link" class="form-control" data-rule="url"> The example above will fail with wrong url message, but this is not the desired effect because it is not required