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

filter does not affect "required" item #198

Open
lgm42 opened this issue Nov 21, 2016 · 0 comments
Open

filter does not affect "required" item #198

lgm42 opened this issue Nov 21, 2016 · 0 comments

Comments

@lgm42
Copy link

lgm42 commented Nov 21, 2016

I'm using filter function

filter: function() {
                    //we check only control that have class enable-validation and are visible
                    return $(this).is(".enable-validation") && $(this).is(":visible");
                }

Some text inputs are with "required" flag

<input type="text" class="form-control enable-validation" required value="192.168.109.26" >

When I remove "enable-validation" class from this input it still checked by jqBootstrapValidation engine even the filter should not return it.

If I remove required and use other validations items like regex it works well.

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