devbridge / BetterCMS

A publishing focused and developer friendly .NET Open Source CMS.
GNU Lesser General Public License v3.0
375 stars 151 forks source link

BetterCMS containment of Select2 is not working #1532

Open remyblok opened 8 years ago

remyblok commented 8 years ago

BetterCMS tries to contain Select2 only within it's own context, but this is failing.

Background: we are using Select2 as well in our site. This worked OK in 1.10.x, but now we have upgraded to 2.0.x it does not work anymore. When not logged in as an admin it still works OK, but when the BCMS content is loaded all our combo boxes stop working. We traced it back to the two issues outlines above. We use a different version of Select2 (4.x) then BetterCMS is (3.x).

Could you please fix them? Thanks!

remyblok commented 8 years ago

For now we fixed it by search/replacing select2 to select3 in our own solution. All our styles and Javascript now use select3 as selector etc. So there is no longer a clash between the two version. I suggest for BCMS to do the same. Search/replace select2 with select2bcms or something. This will make the version you are using private to bcms.