github select2/select2 4.0.1-rc.1
4.0.1 Release Candidate 1

latest releases: 4.1.0-rc.0, 4.1.0-beta.1, 4.1.0-beta.0...
pre-release8 years ago

New features / Improvements

  • The option container is now passed in as the second argument when templating selections using templateSelection [https://github.com//pull/3324]
  • You can immediately start typing to search when tabbing into a multiple select [https://github.com/select2/select2/commit/02cca7baa7b78e73cdcf393172ee3a54be387167, https://github.com/select2/select2/commit/79cdcc0956e242c1ce642bbaa93e538c54f4be0]
  • All parameters passed in for AJAX requests are now set as query string parameters by default [https://github.com//issues/3548]

Bug fixes

  • Fixed bug where multiple selects with placeholders were buggy in IE [https://github.com//issues/3300]
  • Fixed bug where AJAX selects could not be initialized with array data [https://github.com//pull/3375]
  • :all: is now correctly removed when used in containerCss and dropdownCss options [https://github.com//pull/3464]
  • Fixed bug where the multiple select search box would appear on the left in RTL mode [https://github.com//pull/3502]
  • Change ALT + UP to close the dropdown instead of opening it [https://github.com/select2/select2/commit/d2346cc33186c2a00fa2dad29e8e559c42bfea00]
  • Fix focus issue with the multiple select search box when the change event was triggered [https://github.com/select2/select2/commit/698fe7b9e187e182f679aa679eb8b0ecb64a846b, https://github.com/select2/select2/commit/88503d2c67dc7f4fb9395a17f17edfe4948cf738, https://github.com/select2/select2/commit/dd2990adead92593a2dffff6ae004ea8b647d130]
  • Fix bug in ArrayAdapter where the existing <option> data would be used instead of the array data [https://github.com//pull/3565]
  • Remove random call to $dropdownContainer.width() in the AttachBody decorator [https://github.com//pull/3654]
  • Fix memory leak in AttachBody decorator [https://github.com/select2/select2/commit/671f5a2ce21005090e0b69059799cd3dd1fbbf84]
  • Selections can no longer be removed when Select2 is in a disabled state [https://github.com/select2/select2/commit/68d068f1d2c7722d011d285a291d1f974bf09772, https://github.com/select2/select2/commit/7d8f86cbf85ebd2179195ff6a2a7a1c5dcb9da58]
  • Remove redundant open event trigger [https://github.com//pull/3507]
  • Correct references to this in ajax.data and ajax.url callback functions [https://github.com//issues/3361]
  • Apply select2('option') calls on all elements [https://github.com//pull/3495]

Design

  • Fixed original <select> not always being hidden correctly in some cases [https://github.com//pull/3301]
  • Fix potential issue with Bootstrap's gradients in Internet Explorer [https://github.com//pull/3307]
  • Improve compatibility with Zurb Foundation [https://github.com//pull/3290]
  • Remove padding on mobile safari search field in multiple selects [https://github.com//pull/3605]
  • Fix the clear button appearing beneath long text [https://github.com//issues/3306]
  • Migrate the CSS classes for the "Loading more results" message to BEM [https://github.com//issues/3889]
  • Fix inline search not displaying properly in Safari [https://github.com//issues/3459]

Documentation

  • New documentation theme designed by @fk [https://github.com//pull/3376, https://github.com//pull/3467, https://github.com//pull/3488]
  • Update ajax example to reflect pagination [https://github.com//pull/3357]
  • Fix incorrect option name in maxiumSelectionLength example [https://github.com//pull/3454]
  • Fix typos in the disabled mode/results examples [https://github.com//pull/3665]
  • Fix Option parameters in the 4.0 announcement [https://github.com//pull/3547]
  • Fix invalid JSON in the tags example within the 4.0 announcement [https://github.com//pull/3637]

Translations

  • Swapped the inputTooLong and inputTooShort messages in the Galician translation [https://github.com//pull/3291]
  • Fix improper grammar in Dutch translation [https://github.com//pull/3692]
  • Add Japanese translation [https://github.com//pull/3477]
  • Polish translation: Fixed typo in maximum selected message [https://github.com//pull/3587]
  • Add Malay translation [https://github.com//pull/3635]
  • Add errorLoading for Indonesian translation [https://github.com//pull/3635]
  • Correct grammar issues in Hebrew translation [https://github.com//pull/3911]
  • Add errorLoading for Danish translation [https://github.com//pull/3870]
  • Add Arabic translation [https://github.com//pull/3859]

Don't miss a new select2 release

NewReleases is sending notifications on new releases.