Closed jamesleesaunders closed 9 months ago
Hi @jamesleesaunders,
Thank you for reaching out. However, I am afraid, the issue you are describing is in Select2. There is already an open issue regarding your question as well, right here: https://github.com/select2/select2/issues/6298
I am taking the liberty to close this issue. Since we don't bundle Select2 but point to the latest release, the issue will resolve itself.
Cheers! Joe
Thanks @codingjoe understood. The current version of django-select2 v8.1.2 is shipping with select2.js v4.0.13. (where the latest is v4.1.0).
Understood you bundle the latest at point of release. select2.js has already made a number of changes in preparation for jQuery4 removing deprecated jQuery functions, once https://github.com/select2/select2/issues/6298 is concluded and fully tested will you (django-select2) also be releasing a new version so that it also supports jQuery4?
Thanks for providing django-select2 !!
We use Django's vendored version by default, but you can provide your own version, via the SELECT2_JS
setting.
However, if you open a ticket on the Django project itself. I am happy to help you get it pushed into the next bugfix release of Django. Just post the link to the issue on code.djangoproject.com here, an I am happy to help.
Bug Description
While testing django-select2 with the latest version of jQuery there is a deprecation notice:
This is fixed in the latest version os select2 (4.1.0) but django-select2 is shipping with (4.0.13).
jQuery.isArray is being removed in jQuery 4.0.
Im Using: django-select2: 8.1.2
Also see: https://github.com/select2/select2/issues/6298
Steps to Reproduce
Install jquery-migrate plugin. Open browser console. View warning:jQuery.isArray is being removed in jQuery 4.0.
Expected Behavior
I expect django-select2 to be prepared for the use of jQuery 4.0.0