Select2.js 4.0.1

A jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.

There is a newer version of this package available.
See the version list below for details.
Install-Package Select2.js -Version 4.0.1
dotnet add package Select2.js --version 4.0.1
<PackageReference Include="Select2.js" Version="4.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Select2.js --version 4.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

New features in 4.0.1

- The option container is now passed in as the second argument when templating selections using templateResult [dc516e7]
- The option container is now passed in as the second argument when templating selections using templateSelection [#3324]
- You can immediately start typing to search when tabbing into a multiple select [02cca7b, 79cdcc0]
- All parameters passed in for AJAX requests are now set as query string parameters by default [#3548]

Bug fixes

- The search box will now be properly sized after removing a selection [5f80c5d]
- Dropdown results will now be spoken by screen readers [9fae3d7]
- Options are now properly cloned when initializing multiple instances at once [3c8366e]
- selectOnClose and now be used with closeOnSelect without getting a stack overflow [393ca4c]
- Fixed positioning with non-static parents [c9216b4]
- Fixed bug where multiple selects with placeholders were buggy in IE [#3300]
- Fixed bug where AJAX selects could not be initialized with array data [#3375]
- :all: is now correctly removed when used in containerCss and dropdownCss options [#3464]
- Fixed bug where the multiple select search box would appear on the left in RTL mode [#3502]
- Change ALT + UP to close the dropdown instead of opening it [d2346cc]
- Fix focus issue with the multiple select search box when the change event was triggered [698fe7b, 88503d2, dd2990a]
- Fix bug in ArrayAdapter where the existing <option> data would be used instead of the array data [#3565]
- Remove random call to $dropdownContainer.width() in the AttachBody decorator [#3654]
- Fix memory leak in AttachBody decorator [671f5a2]
- Selections can no longer be removed when Select2 is in a disabled state [68d068f, 7d8f86c]
- Remove redundant open event trigger [#3507]
- Correct references to this in ajax.data and ajax.url callback functions [#3361]
- Apply select2('option') calls on all elements [#3495]

Design

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

NuGet packages (10)

Showing the top 5 NuGet packages that depend on Select2.js:

Package Downloads
Serenity.Web.Assets
Contains static assets for Serenity web applications
Angular.UI
The enhancement companion suite to the AngularJS framework
Select2-Bootstrap-Theme
A Select2 v4 Theme for Bootstrap 3
Select2-Bootstrap
Bare bones stylesheet for making select2 fit in with bootstrap a bit better
Vault.js
Part of Vault libraries set designed to enhance experience with latest UI frameworks.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Select2.js:

Repository Stars
Sustainsys/Saml2
Saml2 Authentication services for ASP.NET

Version History

Version Downloads Last updated
4.0.13 5,594 5/15/2020
4.0.11 44,847 10/15/2019
4.0.7 46,365 6/4/2019
4.0.6 10,139 5/6/2019
4.0.6-rc0 6,831 11/7/2017
4.0.5 275,005 10/29/2017
4.0.3 351,568 5/31/2016
4.0.2 58,948 3/15/2016
4.0.1 43,079 1/14/2016
4.0.0 82,373 7/26/2015
3.5.4 3,917 7/12/2018
3.5.3 459 7/12/2018
3.5.2 195,710 11/3/2014
3.5.1 143,896 7/30/2014
3.5.0 17,779 6/23/2014
3.4.8 17,056 5/5/2014
3.4.6 16,583 3/25/2014
3.4.5 31,469 11/19/2013
3.4.3.1 19,320 9/19/2013
3.4.3 1,015 9/18/2013
3.4.2 2,290 9/6/2013
3.4.1.2 10,538 7/29/2013
3.4.1.1 25,016 7/16/2013
3.4.1 1,159 7/12/2013
3.4.0 14,454 5/28/2013
3.3.2 9,593 4/15/2013
3.2.1 32,381 1/23/2013
3.2.0 160,676 1/5/2013
Show less