Pre-release

@alexweissman alexweissman released this Nov 22, 2017 · 19 commits to develop since this release

Assets 2

Bug fixes

  • Fix up arrow error when there are no options in dropdown (#5127)
  • Fix IE11 issue with select losing focus after selecting an item (#4860)
  • Reinstate backwards-compatible support for data('select2') (#4014)

Translations

  • Add Turkmen translations (tk) (#5125)
  • Fix error in French translations (#5122)

Miscellaneous

  • Remove duplicate CSS selector in classic theme (#5115)
Pre-release

@alexweissman alexweissman released this Oct 26, 2017 · 32 commits to develop since this release

Assets 2

New features/improvements

  • Add style property to package.json (#5019)
  • Implement clear and clearing events (#5058)

Bug fixes

  • Add ; before beginning of factory wrapper (#5089)
  • Clear tooltip from select2-selection__rendered when selection is cleared (#4640, #4746)
  • Fix keyboard not closing when closing dropdown on iOS 10 (#4680)
  • User-defined types not normalized properly when passed in as data (#4632)
  • Perform deep merge for Defaults.set() (#4364)
  • Fix "the results could not be loaded" displaying during AJAX request (#4356)
  • Cache objects in Utils.__cache instead of using $.data (#4346)
  • Removing the double event binding registration of selection:update (#4306)

Accessibility

  • Improve .select2-hidden-accessible (#4908)
  • Add role and aria-readonly attributes to single selection dropdown value (#4881)

@alexweissman alexweissman released this Oct 25, 2017 · 3 commits to master since this release

Assets 2

Bug fixes

  • Replace autocapitalize=off with autocapitalize=none (#4994)

Translations

  • Vietnamese: remove an unnecessary quote mark (#5059)
  • Czech: Add missing commas and periods (#5052)
  • Spanish: Update the 'errorLoading' message (#5032)
  • Fix typo in Romanian (#5005)
  • Improve French translation (#4988)
  • Add Pashto translation (ps) (#4960)
  • Add translations for lower and upper Sorbian (dsb and hsb) (#4949)
  • Updates to Slovak (#4915)
  • Fixed Norwegian inputTooShort message (#4817, 4896)
  • Add Afrikaans translation (af) (#4850)
  • Add Bosnian translation (bs) (#4504)

@kevin-brown kevin-brown released this Sep 24, 2017 · 50 commits to master since this release

Assets 2

This is the fourth bugfix release of Select2 4.0.0. It builds upon the third bugfix release and fixes many common issues.

New features / Improvements

Bug fixes

  • Fix issue with entire form losing focus when tabbing away from a Select2 control (#4419)
  • Fix UMD support for CommonJS (45a8773)

Documentation

  • Add django-autocomplete-light to integrations (#4597)
  • Correct typo in options page (#4389)
  • Correct misspelling in AJAX query parameters example (#4435)
  • "highlight" should be "focus" in focus example (#4441)
  • Correct misspelling in <select> serialization example (#4538)
  • Correct typos in documentation (#4663)

Translations

  • Add errorLoading Hungarian translation (7d1d133)
  • Add errorLoading German translation (4df9652)
  • Add Slovene language (8e6422c)
  • Add errorLoading Galician translation (8fcc620)
  • Add errorLoading Thai translation (625fc78)
  • Add searching and errorLoading Finnish translations (#4730)
  • Add errorLoading Turkish translation (fd4a082, 751b367)
  • Add Armenian language (f6fa52d)

@kevin-brown kevin-brown released this May 27, 2016 · 134 commits to master since this release

Assets 2

This is the third bugfix release of Select2 4.0.0. It builds upon the second bugfix release and fixes many common issues.

New features / Improvements

  • The old dropdownAutoWidth option now properly works [https://github.com/select2/select2/commit/fe26b083eb830836061de1458e483782cefef424]
  • A focus event on the original <select> is now handled [https://github.com/select2/select2/commit/31e7a1d4c52ed7477769fcad5d15166ae3c9b4d0]
  • Adding and removing options now refreshes the selection automatically [https://github.com/select2/select2/commit/ea79a197e0ffe55aa600eed6d18cbd1c804c3176]

Bug fixes

  • select2('option') no longer mutate the arguments when working on multiple elements [https://github.com/select2/select2/commit/c2c1aeef31c95c6df5545c900a4e1782d712497c]
  • Better detect aborted requests [https://github.com/select2/select2/commit/cfb66f5e4f71a56c46a6890c5dde4b7f24f11fa8]
  • New options are now properly created during tokenization [https://github.com/select2/select2/commit/3b8cd2e36990e695e4cb4b966c8658e7ca1574dc]
  • Fix positioning bug with non-static parents for the dropdown [https://github.com//pull/4267]
  • Infinite scrolling no longer resets the keyboard focus [https://github.com/select2/select2/commit/e897d008a672da262ba84cee2a144578696ada29, https://github.com/select2/select2/commit/9f581285d88128b29a01fc1e5fd2d445d610b553]
  • selectOnClose now works properly with closeOnSelect [https://github.com/select2/select2/commit/481c43883e23874e9c35879d173eb8cc5b994b12]
  • Apply ajax.delay to empty search terms as well [https://github.com/select2/select2/commit/4b9e02f02211248be25ac4c16d4635cf38237bb9]

Documentation

  • Added example for attaching event listeners [https://github.com/select2/select2/commit/84d6b5d840f7f4e6b7a2fb3f08424bf5495c876d]
  • Correct link to the Select2 Bootstrap Theme [https://github.com//pull/4318]
  • Added example for using a <label> [https://github.com/select2/select2/commit/3bc7f4ac78b58eff8cd17b3273596638c3c9c5c1]
  • Add documentation for ajax.url [https://github.com/select2/select2/commit/5a831afb9a7d46e8f20aec21164cfbfd182024de]
  • Added favicon [https://github.com//pull/4379]

Translations

  • Add Khmer translation [https://github.com//pull/4246]
  • Added Norwegian bokmaal for errorLoading [https://github.com//pull/4259]
  • Fixed pluralization in Lithuanian translation [https://github.com/select2/select2/commit/5b5eddd183c87bf43165b3a98e03eabe10e9fa58]
  • Add French translation for errorLoading [https://github.com/select2/select2/commit/b1ea28bb7d8c02b3b352f558031ccfc8041122eb]
  • Add Greek translation [https://github.com//pull/4139]

@kevin-brown kevin-brown released this Mar 9, 2016 · 181 commits to master since this release

Assets 2

This is the second bugfix release of Select2 4.0.0. It builds upon the first release candidate of Select2 4.0.2 with some minor improvements.

New features / Improvements

  • Added insertTag option to control the placement of the tags option [https://github.com//pull/4008]
  • Added handler for AJAX errors [https://github.com//issues/3501]
  • Added insertTag to control the tag position [https://github.com//pull/4008]

Bug fixes

  • Fixed positioning issues with static dropdown parents [https://github.com//issues/3970]
    • Fixed existing selections not always being respected with array data [https://github.com//issues/3990]
  • Sanitize automatically generated ids so CSS identifiers can be used [https://github.com//issues/3618]
  • Recursively apply defaults so AJAX defaults can be set [https://github.com/select2/select2/commit/983cd8e765c5345bfe7d3bdcc3b0c882a35461ca]
  • No need to recalculate the top of the dropdown twice [https://github.com//pull/4155]

Documentation

  • Updated Bootstrap and Font Awesome dependencies [https://github.com/select2/select2/commit/a5e539b509778eabeb8ce79e191b3ee1e81f6deb, https://github.com/select2/select2/commit/81a4a68b113e0d3e0fb1d0f8b1c33ae1b48ba04f, https://github.com/select2/select2/commit/6369f5f173fb81ec692213782945cc737e248da5]
  • Use Jekyll's highlighting instead of prettify [https://github.com/select2/select2/commit/54441e6a22be3969dd934ccb769f5d7dde684bfb, https://github.com/select2/select2/commit/74387b98632c75b06d15d83ad5359b9daf0f5dcb, https://github.com/select2/select2/commit/a126b53b4c90fac33b5d855894647cd8bcac3558, https://github.com/select2/select2/commit/75163d67cb80e4279965a97e9eeda5b171806085]
  • Corrected responsive width example to properly show it working [https://github.com/select2/select2/commit/63d531a9c0ab51f05327492a56f3245777762b45]
  • Replaced protocol-relative URLs with HTTPS protocol [https://github.com//pull/4127]
  • Code snippets for mapping id and text [https://github.com//issues/4086]
  • Document how to trigger change just for Select2 [https://github.com//issues/3620]
  • Added notes about DOM events [https://github.com/select2/select2/commit/37dbe059fce4578b46b7561e6243b7fdc63ac002]

Translations

  • Correct Romanian translation [https://github.com/select2/select2/commit/72d905f9e026d49e7c600f37a1ce742c404654d7]

@kevin-brown kevin-brown released this Feb 14, 2016 · 190 commits to master since this release

Assets 2

New features / Improvements

  • Added insertTag option to control the placement of the tags option [https://github.com//pull/4008]
  • Added handler for AJAX errors [https://github.com//issues/3501]
  • Added insertTag to control the tag position [https://github.com//pull/4008]

Bug fixes

  • Fixed positioning issues with static dropdown parents [https://github.com//issues/3970]
  • Fixed existing selections not always being respected with array data [https://github.com//issues/3990]
  • Sanitize automatically generated ids so CSS identifiers can be used [https://github.com//issues/3618]
  • Recursively apply defaults so AJAX defaults can be set [https://github.com/select2/select2/commit/983cd8e765c5345bfe7d3bdcc3b0c882a35461ca]
  • No need to recalculate the top of the dropdown twice [https://github.com//pull/4155]

Documentation

  • Updated Bootstrap and Font Awesome dependencies [https://github.com/select2/select2/commit/a5e539b509778eabeb8ce79e191b3ee1e81f6deb, https://github.com/select2/select2/commit/81a4a68b113e0d3e0fb1d0f8b1c33ae1b48ba04f, https://github.com/select2/select2/commit/6369f5f173fb81ec692213782945cc737e248da5]
  • Use Jekyll's highlighting instead of prettify [https://github.com/select2/select2/commit/54441e6a22be3969dd934ccb769f5d7dde684bfb, https://github.com/select2/select2/commit/74387b98632c75b06d15d83ad5359b9daf0f5dcb, https://github.com/select2/select2/commit/a126b53b4c90fac33b5d855894647cd8bcac3558, https://github.com/select2/select2/commit/75163d67cb80e4279965a97e9eeda5b171806085]
  • Corrected responsive width example to properly show it working [https://github.com/select2/select2/commit/63d531a9c0ab51f05327492a56f3245777762b45]
  • Replaced protocol-relative URLs with HTTPS protocol [https://github.com//pull/4127]
  • Code snippets for mapping id and text [https://github.com//issues/4086]
  • Document how to trigger change just for Select2 [https://github.com//issues/3620]
  • Added notes about DOM events [https://github.com/select2/select2/commit/37dbe059fce4578b46b7561e6243b7fdc63ac002]

@kevin-brown kevin-brown released this Nov 27, 2015 · 224 commits to master since this release

Assets 2

This is the first bugfix release of Select2 4.0.0. It builds upon the first release candidate of Select2 4.0.1 with some minor improvements.

New features / improvements

  • The option container is now passed in as the second argument when templating selections using templateResult [https://github.com/select2/select2/commit/dc516e7073605723be59bc727b96a3b3dea1ae5a]
  • 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

  • The search box will now be properly sized after removing a selection [https://github.com/select2/select2/commit/5f80c5d9f81f3c5398c3e6e3e84fd6c67c8873f1]
  • Dropdown results will now be spoken by screen readers [https://github.com/select2/select2/commit/9fae3d74e373fc646da4e39a0c2ab11efa808c3f]
  • Options are now properly cloned when initializing multiple instances at once [https://github.com/select2/select2/commit/3c8366e8769233a6b20ade934fe629279e7be6ff]
  • selectOnClose and now be used with closeOnSelect without getting a stack overflow [https://github.com/select2/select2/commit/393ca4cf7f7f7097d3a994bda3dbf195e945eba1]
  • Fixed positioning with non-static parents [https://github.com/select2/select2/commit/c9216b4b966653dd63a67e815b47899ef5325298]
  • 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

  • Added Cyrillic variant of the Serbian language [https://github.com//pull/3943]
  • Corrected Thai "no results found" translation [https://github.com//pull/3782]
  • 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]

Changes that were made in the first release candidate of Select 4.0.1 are included as quoted portions.

@kevin-brown kevin-brown released this Nov 10, 2015 · 250 commits to master since this release

Assets 2

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]

@kevin-brown kevin-brown released this Aug 30, 2015 · 963 commits to develop since this release

Assets 2

This bug fix release comes 11 days after the release of Select2 3.5.3, so it is recommended to also check out that release when upgrading.

Bug fixes

  • Tagging is back and working [https://github.com//issues/3695]
  • Fixed setting data using select2('data') on a single select breaking [https://github.com//issues/3694]

Select2 3.5.3 release notes

New features

This release does not add any new features, but it does add migration assistance for those who are looking to upgrade to Select2 4.0.0. These can be enabled by setting debug: true in your settings when initializing Select2.

  • Warnings will be displayed when debug is true and deprecated or renamed options are being used [https://github.com//issues/3483]
  • Options renamed in 4.0.0 are supported under their new names [https://github.com//issues/3483]

Bug fixes

  • Remove the remaining code for Internet Explorer 7 support [https://github.com//pull/2786]
  • Hide the search box if the dropdown is empty [https://github.com//pull/2828]
  • Improve performance issues in setVal [https://github.com//pull/2848]
  • Fix support for Zepto [https://github.com//pull/2866]
  • Properly remove event handlers when destroying [https://github.com//pull/2925]
  • Fix exception when no results are found using a multiple select.

This release is the final release under the 3.5.x line that will be handled by @kevin-brown. If you are interested in taking over the 3.5.x releases, contact Kevin Brown for more information.