- Issue created by @smurfxx
- 🇮🇹Italy sepa_cleversoft
Exactly the same problem here.
I think it's related to JQuery version. Drupal 11 ships jQuery 4.0, and isArray is a function deprecated on it. I think Select2 has not jQuery 4 support: https://github.com/select2/select2/issues/6298
- 🇪🇸Spain cesarmsfelipe
I have the same problem in Drupal 11.1.6, I have solved it by changing the dependency
composer require npm-asset/select2:4.1.0-rc.0
- 🇪🇨Ecuador betoaveiga Daule, Guayas
#4 Somehow fixed my first dropdown, but I have 3 select2 dropdowns on the same page.
Then I applied the patch on this issue: https://www.drupal.org/project/select2/issues/3379063 🐛 JS error - Uncaught Sortable: `el` must be an HTMLElement, not [object Undefined] Active , and now it is working.