All Versions
19
Latest Version
Avg Release Cycle
81 days
Latest Release
-

Changelog History
Page 1

  • v4.1.0

    ๐Ÿ’ฅ Breaking changes

    • โœ… The minimum jQuery version supported is the latest version in the 1.x, 2.x, and 3.x series (#5225)
    • โœ‚ Removed support for legacy Internet Explorer (versions older than IE 11) (#5834)
    • โœ‚ Removed modules deprecated in 4.0.0 (#5815)
      • Removed legacy support for <input /> tags
      • Removed legacy support for initSelection
      • Removed legacy support for query
      • Removed old select2/compat/matcher module
    • โœ‚ Removed undocumented CSS-related options (#5815)
      • Removed dropdownCss option
      • Removed adaptDropdownCss option
      • Removed containerCss option
      • Removed adaptContainerCss option
    • The containerCssClass option has been renamed to selectionCssClass (#5815, #5847)
    • Significant changes to the HTML/CSS for the selection area impacting custom themes (#5842)
    • ๐Ÿ†• New CSS classes for the dropdown results to better target highlighted / selected results (#5841)

    ๐Ÿ†• New features / improvements

    • ๐Ÿ— dropdownCssClass and selectionCssClass are now available in all builds of Select2 (#5815)
    • Calls to get the currently selected options are now considerably faster on large datasets (#5775)
    • Selected results in the dropdown should now be properly announced to screen readers (#5841)
    • Significant improvements were made to make the selection area accessible (#5842)

    ๐Ÿ› Bug fixes

    • Resize the selection search on close to properly display the placeholder (#5766)
    • ๐Ÿ”„ Change internal data ID generation to be more unique and prevent conflicts with numeric IDs (#5840)
    • Internet Explorer 11 no longer steals focus of search box while tagging (#5842)

    ๐ŸŒ Translations

    • โž• Add Esperanto translation (eo) (#5823)
    • โž• Add Punjabi translations (pa) (#5831)

    Miscellaneous

    • ๐Ÿ— The amdLanguageBase option no longer has an effect because the full build does not include any dynamically loaded modules (#5815)
  • v4.1.0-beta.1

    May 02, 2020

    ๐Ÿ’ฅ Breaking changes

    • The selectionCssClass option now works when used without containerCssClass (#5815, #5847)
    • Significant changes to the HTML/CSS for the selection area impacting custom themes (#5842)
    • ๐Ÿ†• New CSS classes for the dropdown results to better target highlighted / selected results (#5841)

    ๐Ÿ†• New features / improvements

    • The autocomplete attribute is now copied over to the Select2 search field (#5839)
    • Selected results in the dropdown should now be properly announced to screen readers (#5841)
    • Significant improvements were made to make the selection area accessible (#5842)

    ๐Ÿ› Bug fixes

    • Resize the selection search on close to properly display the placeholder (#5766)
    • ๐Ÿ”„ Change internal data ID generation to be more unique and prevent conflicts with numeric IDs (#5840)
    • Internet Explorer 11 no longer steals focus of search box while tagging (#5842)

    ๐Ÿ‘€ Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors or sponsor Select2 on Open Collective!

  • v4.1.0-beta.0

    April 20, 2020

    ๐Ÿ’ฅ Breaking changes

    • โœ… The minimum jQuery version supported is the latest version in the 1.x, 2.x, and 3.x series (#5225)
    • โœ‚ Removed support for legacy Internet Explorer (versions older than IE 11) (#5834)
    • โœ‚ Removed modules deprecated in 4.0.0 (#5815)
      • Removed legacy support for <input /> tags
      • Removed legacy support for initSelection
      • Removed legacy support for query
      • Removed old select2/compat/matcher module
    • โœ‚ Removed undocumented CSS-related options (#5815)
      • Removed dropdownCss option
      • Removed adaptDropdownCss option
      • Removed containerCss option
      • Removed adaptContainerCss option
    • The containerCssClass option has been renamed to selectionCssClass (#5815)

    ๐Ÿ†• New features / improvements

    • ๐Ÿ— dropdownCssClass and selectionCssClass are now available in all builds of Select2 (#5815)
    • Calls to get the currently selected options are now considerably faster on large datasets (#5775)

    ๐ŸŒ Translations

    • โž• Add Esperanto translation (eo) (#5823)
    • โž• Add Punjabi translations (pa) (#5831)

    Miscellaneous

    • ๐Ÿ— The amdLanguageBase option no longer has an effect because the full build does not include any dynamically loaded modules (#5815)

    ๐Ÿ‘€ Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors or sponsor Select2 on Open Collective!

  • v4.0.13

    January 28, 2020

    ๐Ÿ†• New features / improvements

    • Trigger input event before change events (#4649)
    • Feed back the keypress code that was responsible for the 'close' event (#5513)
    • โšก๏ธ Only trigger selection:update once on DOM change events (#5734)

    ๐Ÿ› Bug fixes

    • Prevent opening of disabled elements (#5751)

    ๐Ÿ“š Documentation

    • ๐Ÿ›  Fix "edit this page" links in docs (#5689)

    Miscellaneous


    ๐Ÿ‘€ Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors or sponsor Select2 on Open Collective!

  • v4.0.12

    November 06, 2019

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fixes incorrect offset when using the Shadow DOM and styling the <html> element (#5682)

    Miscellaneous

    • ๐Ÿ“š Replace cdnjs with jsDelivr in the documentation (#5687)
    • ๐Ÿ›  Fix incorrect provider for the automated NPM deployment (#5686)

    ๐Ÿ‘€ Select2 is a looking for sponsors to keep development active. Interested in seeing Select2 continue to be developed? Sponsor @kevin-brown (and by extension, Select2) on GitHub Sponsors!

  • v4.0.11

    October 13, 2019

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fixes jQuery migrate error when getting offset when dropdownParent not in document (#5584)

    Miscellaneous

    • ๐Ÿ‘ท Enable GitHub actions for CI (#5591)
    • ๐Ÿ“š Documentation has been moved into and is deployed from the code repository (#5638)
    • โœ‚ Remove Travis CI integration (#5665)
  • v4.0.10

    August 28, 2019

    ๐Ÿ†• New features / improvements

    • ๐Ÿ‘Œ Support passing in a selector for dropdownParent option (#5622)

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fix bug where dropdowns pointing upwards were incorrectly positioned (#5621)
  • v4.0.9

    August 22, 2019

    ๐Ÿ†• New features / improvements

    • Mirror disabled state through aria-disabled on selection (#5579)
    • Select2 now clears the internal ID when it is destroyed (#5587)
    • Set the main ARIA 1.1 roles and properties for comboboxes (#5582)
    • The language option now has a clearly defined fallback chain (#5602)

    ๐Ÿ› Bug fixes

    • Do not propagate click when search box is not empty (#5580)
    • ๐Ÿ›  Fix maximumSelectionLength being ignored by closeOnSelect (#5581)
    • ๐Ÿ›  Fix generated options not receiving result IDs (#5586)
    • โœ‚ Remove selection title attribute if text is empty (#5589)
    • Reposition dropdown whenever items are selected (#5590)
    • ๐Ÿ›  Fix dropdown positioning when displayed above with messages (#5592)
    • ๐Ÿ›  Fix search box expanding width of container (#5595)
    • allowClear no longer shifts selections to a new line (#5603)

    ๐ŸŒ Translations

    • ๐Ÿ›  Fix error in German translations (#5604)

    Miscellaneous

    • โšก๏ธ Updated development grunt version so it no longer shows as vulnerable (#5597)
    • โœ‚ Remove unused variables (#5554)
  • v4.0.8

    July 21, 2019

    ๐Ÿ†• New features / improvements

    • โœ… Test against and fix compatibility with jQuery 3.4.1 (#5531)
    • Results respect disabled state of <option> (#5560)
    • โž• Add computedstyle option for calculating the width (#5559)

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fix tag creation being broken in 4.0.7 (#5558)
    • ๐Ÿ›  Fix infinite scroll when the scrollbar is not visible (#5575)
    • โช Revert change to focusing behaviour in 4.0.6 (#5576)

    ๐ŸŒ Translations

    • ๐Ÿ›  Fix wording in French translations (#5521)

    Miscellaneous

    • โšก๏ธ Update grunt-contrib-qunit to latest version (#5530)
    • โœ‚ Removed unused .select2-selection__placeholder CSS definitions for multiple selects (#5508)
    • โœ‚ Remove deprecated jQuery shorthand (#5564)
  • v4.0.7

    May 07, 2019

    ๐Ÿ†• New features/improvements

    • Do not close on select if Ctrl or Meta (Cmd) keys being held (#5222)

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fixed issue where single select boxes would automatically reopen when they were closed (#5490, #5492)

    Miscellaneous

    • ๐Ÿšš Move almond and jquery-mousewheel to devDependencies (#5489)