jqBootstrapValidation icon indicating copy to clipboard operation
jqBootstrapValidation copied to clipboard

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

Open FriendOfTheNight opened this issue 10 years ago • 0 comments

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) {

FriendOfTheNight avatar Nov 24 '15 11:11 FriendOfTheNight