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

"TypeError: obj is undefined" in jQuery.each function with select #186

Open
FriendOfTheNight opened this issue Nov 24, 2015 · 0 comments
Open

Comments

@FriendOfTheNight
Copy link

When using the Chosen library (https://github.com/harvesthq/chosen) with jqBootstrapValidation I'm getting "TypeError: obj is undefined" in the jQuery.each function every time I open the drop-down.

The issue is here:
$.each($(el).triggerHandler("validation.validation", params), function (j, message) {

since "$(el).triggerHandler("validation.validation", params)" is coming back undefined.

It looks like this was already fixed on the master branch:

$.each($(el).triggerHandler("validation.validation", params) || [], function (j, message) {

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