jquery-selectBox icon indicating copy to clipboard operation
jquery-selectBox copied to clipboard

Bug with jquery 3.1.1

Open Deprivant opened this issue 8 years ago • 4 comments

with jquery 3.1.1, console says: TypeError: a(...).parents(...).andSelf is not a function

Deprivant avatar Jan 17 '17 11:01 Deprivant

Having the same issue.

Lewitje avatar Jul 27 '17 07:07 Lewitje

Same here. Any clues?

carlosnpz avatar Aug 09 '17 16:08 carlosnpz

Same problem, using jQuery 3.2.1: TypeError: $(...).parents(...).andSelf is not a function /jquery.selectbox.min.js:539

This happens when you click on the chosen option... last update fot this is 4 years ago, so I dont expect an solution soon. Think the jQuery UI selectmenu is a good alternative.

***** EDIT ***** Change it to addBack() https://api.jquery.com/addBack/

(This function has been deprecated and is now an alias for .addBack(), which should be used with jQuery 1.8 and later.) https://api.jquery.com/andself/

Seoptics avatar Sep 15 '17 09:09 Seoptics

I too see the

TypeError: a(...).parents(...).andSelf is not a function

problem, but find it only occurs during an exception. So it seems that exception handling is broken or at least crippled. My workaround was to revise my code to avoid the exception (in my case it was pre-initializing ALL of my <selection> elements before my initial call to $('select').selectBox()).

@Seoptics, I tried jQuery UI selectmenu, but it doesn't support <select size>, which allows me to "pre-expand" my selection menus. Thanks for the suggestion though.

CODE-REaD avatar May 04 '18 15:05 CODE-REaD