Conficts with silverstripe/tagfield
lerni opened this issue · 4 comments
Tagfield (https://github.com/silverstripe-labs/silverstripe-tagfield/) used by the new Blogmodule (https://github.com/silverstripe/silverstripe-blog) uses Select2 4.0.0-rc.2. This module uses 3.2 and this seams to cause a conflict.
@ohararyan is working on a fix for this at the moment :)
Opening a ticket on Tagfield for this as well (silverstripe/silverstripe-tagfield#77); I think any modules requiring select2 should just pull it in via composer?
require select2/select2 ~4.0
This includes some dependencies and is installed in the vendor dir. It can be required from the added components dir:
Requirements::javascript('components/select2/dist/js/select2.js');
Requirements::css('components/select2/dist/css/select2.css');
(or simply include it from CDN;)
Requirements::css('//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css');
Requirements::javascript('//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js');
Thanks. Composer or CDN solution would be fine. Upgrading this module to use select2 4.0.x will be the grunt of the work
Hey! Did anyone figure out a way around this?