This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Select with multiple attribute initially has error validation on page load #393
Labels
Comments
Hi, i have the same errors and i find why. As of jQuery 3.0, if no options are selected, it returns an empty array; prior to jQuery 3.0, it returns null. So, if you have < jQuery 3.0 the validation will fail. I will try to fix that in the weekend |
JSBin for this issue: JSBin: http://jsbin.com/foyogogogo/edit?html,output |
If we revert changes, it will not help. Current issue is because of logic which check if values is empty is incorrect due to changes in jQuery >= 3.0 where .val() function return empty array for with multiple attribute prior to jQuery 3.0 it returns null, |
desfero
added a commit
to desfero/bootstrap-validator
that referenced
this issue
Nov 9, 2016
…ion on page load
@1000hz i submit a pull request to fix this issue |
1000hz
added a commit
that referenced
this issue
Dec 5, 2016
#393 Select with multiple and required attributes .has-error in pristine mode
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: