This is the third beta release of Select2 4.0.
This builds upon the previous beta release, so review all previous release notes before upgrading from previous versions of Select2.
New features
- Added backwards compatibility with the old
query
andinitSelection
methods in the full builds. - Select2 is now fully compatible with most AMD loaders when using the AMD build.
- The default values for options are now publicly accessible. You find out how to use them in the documentation.
- Select2 will now work with
jQuery.noConflict
without any issues. - You can use more specific locales (like
en-US
) and Select2 will be able to determine what translation files to load. - Improved the warning and error messages when Select2 detects an abnormal configuration.
Breaking changes
- The full build of Select2 no longer includes jQuery - You must include jQuery separately on your page.
- Select2 will prevent the inner scrolling of modals (and other scrollable containers) when it is open to prevent the UI from breaking. Read more at the commit.
- jQuery is no longer listed as a dependency in the
bower.json
/component.json
files.
Removed events
select2-clearing
- Removed in favor ofselect2:unselecting
which will be triggered