selectize.js icon indicating copy to clipboard operation
selectize.js copied to clipboard

jQuery 3 Support

Open jblacker opened this issue 9 years ago • 10 comments

This is more of a discussion/information request. Has anyone tested selectize.js against jQuery 3? I'm getting ready to upgrade a project from jQuery 2.2.2 to jQuery 3 and this is the only library that I'm not sure about its compatibility. I plan on doing some testing on my own at some point, but figured I'd create a post here to see what anyone else's findings were and see if we can make selectize.js's jQuery 3 support "offical."

jblacker avatar Apr 12 '17 16:04 jblacker

Did you manage to test this @jblacker? I'm in the same position now that you were in.

shaneog avatar May 31 '17 23:05 shaneog

I've tried running selectize on both jquery 1 and 3, and have seen no differences between the two. YMMV.

avranu avatar Jun 21 '17 21:06 avranu

I have upgraded to jQuery 3.2.1 recently and when I run my karma tests I get a selectize error: TypeError: undefined is not an object (evaluating 'a.extend') at bower_components/selectize/dist/js/standalone/selectize.min.js:2

Selectize version is v0.12.1

Has anyone else experienced this problem?

RaquelPlaza avatar Nov 13 '17 16:11 RaquelPlaza

with jQuery 3.2.1 and selectiza 0.12.1 I got this error while following the basic example:

Uncaught TypeError: Sifter is not a constructor

vcajes avatar Dec 11 '17 13:12 vcajes

Same error on 2.2.3

dansleboby avatar Apr 04 '18 04:04 dansleboby

Uncaught TypeError: Sifter is not a constructor

Same error jQuery 3.3.1, Selectize 0.12.6 =(

KES777 avatar Dec 18 '18 12:12 KES777

I'm upgrading to jQuery 3.5.1 and get the following deprecations:

  • [ ] JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray. Looks like calls to Array.isArray have been interspersed with $.isArray in selectize standalone 0.12.6
  • [ ] JQMIGRATE: Use of number-typed values is deprecated in jQuery.fn.css
  • [ ] JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim

DenisLabrecque avatar Jun 22 '20 18:06 DenisLabrecque

@brianreavis @joallard

Can you confirm if this issue is taken into consideration since WordPress 5.6 has been released with jQuery 3 and I see various migration warnings?

With WordPress 5.7, they will completely remove jQuery Migrate and this will break the Selectize library in WP sites.

erropix avatar Dec 09 '20 14:12 erropix

@ERROPiX there should be no issues, we are using jquery 3.5.1 for local testing and all tests, demos, and examples are working as expected.

risadams avatar Dec 09 '20 16:12 risadams

@risadams I just tried, it's working, these are just deprecated warnings, but as shown in this comment https://github.com/selectize/selectize.js/issues/1277#issuecomment-647696823 these functions are deprecated and need be changed which is easy to fix

erropix avatar Dec 09 '20 19:12 erropix