Skip to content

Commit

Permalink
Merge pull request #5974 from select2/release/4.1.0-rc.0
Browse files Browse the repository at this point in the history
[Release] 4.1.0 rc.0
  • Loading branch information
kevin-brown committed Jan 23, 2021
2 parents 2cf64df + 2de1b9a commit 3c4c4da
Show file tree
Hide file tree
Showing 74 changed files with 260 additions and 105 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Breaking changes

* The minimum jQuery version supported is the latest version in the 1.x, 2.x, and 3.x series (#5225)
* The minimum jQuery version supported is the latest version in the 1.x, 2.x, and 3.x series (#5525, #5955)
* 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
Expand All @@ -19,24 +19,31 @@
* 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)
* The search box in the selection area for multiple selects has been changed from an `<input />` to a `<textarea>` to support pasting multiple lines (#5806)
* Change tab key to select the currently highlighted option instead of just closing (#5759)
* Tags will be highlighted first in the results even if other options have been selected (#5812)

### 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)
* Significant improvements were made to make the selection area accessible (#5824, #5842, #5916, #5942, #5973)
* Allow pasting multiple lines into the search field for tokenization (#5806)

### 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)
* Fix slow memory leak caused by not clearing cache on destroy (#5965)

### Translations

* Add Esperanto translation (`eo`) (#5823)
* Add Punjabi translations (`pa`) (#5831)
* Add Telugu translations (`te`) (#5881)
* Updated Hungarian translations (`hu`) for 4.1.0 changes (#5970)

### Miscellaneous

Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "select2",
"repo": "select/select2",
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
"version": "4.1.0-beta.1",
"version": "4.1.0-rc.0",
"demo": "https://select2.org/",
"keywords": [
"jquery"
Expand Down
31 changes: 26 additions & 5 deletions dist/css/select2.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@
margin-top: 5px;
margin-left: 5px;
padding: 0;
max-width: 100%; }
max-width: 100%;
resize: none;
height: 18px;
vertical-align: bottom;
font-family: sans-serif;
overflow: hidden;
word-break: keep-all; }
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
-webkit-appearance: none; }

Expand Down Expand Up @@ -189,23 +195,35 @@
border-radius: 4px;
cursor: text;
padding-bottom: 5px;
padding-right: 5px; }
padding-right: 5px;
position: relative; }
.select2-container--default .select2-selection--multiple.select2-selection--clearable {
padding-right: 25px; }
.select2-container--default .select2-selection--multiple .select2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
height: 20px;
margin-right: 10px;
margin-top: 5px;
position: absolute;
right: 0;
padding: 1px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: #e4e4e4;
border: 1px solid #aaa;
border-radius: 4px;
box-sizing: border-box;
display: inline-block;
margin-left: 5px;
margin-top: 5px;
padding: 0; }
padding: 0;
padding-left: 20px;
position: relative;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
white-space: nowrap; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
cursor: default;
padding-left: 2px;
Expand All @@ -220,7 +238,10 @@
cursor: pointer;
font-size: 1em;
font-weight: bold;
padding: 0 4px; }
padding: 0 4px;
position: absolute;
left: 0;
top: 0; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
background-color: #f1f1f1;
color: #333;
Expand Down

0 comments on commit 3c4c4da

Please sign in to comment.