tetranz / select2entity-bundle

A Symfony2 bundle that integrates Select2 as a drop-in replacement for a standard entity field on a Symfony form.
MIT License
219 stars 110 forks source link

Drop jQuery? #176

Open tacman opened 3 years ago

tacman commented 3 years ago

Bootstrap 5 will be out soon, and it no longer requires jQuery. It'd be great if this bundle didn't require it either, and instead used ES6 (with polyfill for older browsers).

The javascript part of this bundle is less than 150 lines, and while uses jQuery extensively, it's not really all that big. The issue, of course, is that select2 is a jquery plugin. choices.js seems to be a good jQuery-less alternative (though needs a new maintainer), but then this almost becomes a new bundle.

Thoughts on a new version, or should it be a completely new project? Regardless, I realize it's a non-trivial amount of work, so in part this is brainstorming. A new project could require Symfony 5+, php >=7.4, bootstrap 5.