Skip to content

Commit 3c4c4da

Browse files
authored
Merge pull request select2#5974 from select2/release/4.1.0-rc.0
[Release] 4.1.0 rc.0
2 parents 2cf64df + 2de1b9a commit 3c4c4da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+260
-105
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Breaking changes
66

7-
* The minimum jQuery version supported is the latest version in the 1.x, 2.x, and 3.x series (#5225)
7+
* The minimum jQuery version supported is the latest version in the 1.x, 2.x, and 3.x series (#5525, #5955)
88
* Removed support for legacy Internet Explorer (versions older than IE 11) (#5834)
99
* Removed modules deprecated in 4.0.0 (#5815)
1010
* Removed legacy support for `<input />` tags
@@ -19,24 +19,31 @@
1919
* The `containerCssClass` option has been renamed to `selectionCssClass` (#5815, #5847)
2020
* Significant changes to the HTML/CSS for the selection area impacting custom themes (#5842)
2121
* New CSS classes for the dropdown results to better target highlighted / selected results (#5841)
22+
* 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)
23+
* Change tab key to select the currently highlighted option instead of just closing (#5759)
24+
* Tags will be highlighted first in the results even if other options have been selected (#5812)
2225

2326
### New features / improvements
2427

2528
* `dropdownCssClass` and `selectionCssClass` are now available in all builds of Select2 (#5815)
2629
* Calls to get the currently selected options are now considerably faster on large datasets (#5775)
2730
* Selected results in the dropdown should now be properly announced to screen readers (#5841)
28-
* Significant improvements were made to make the selection area accessible (#5842)
31+
* Significant improvements were made to make the selection area accessible (#5824, #5842, #5916, #5942, #5973)
32+
* Allow pasting multiple lines into the search field for tokenization (#5806)
2933

3034
### Bug fixes
3135

3236
* Resize the selection search on close to properly display the placeholder (#5766)
3337
* Change internal data ID generation to be more unique and prevent conflicts with numeric IDs (#5840)
3438
* Internet Explorer 11 no longer steals focus of search box while tagging (#5842)
39+
* Fix slow memory leak caused by not clearing cache on destroy (#5965)
3540

3641
### Translations
3742

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

4148
### Miscellaneous
4249

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "select2",
33
"repo": "select/select2",
44
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
5-
"version": "4.1.0-beta.1",
5+
"version": "4.1.0-rc.0",
66
"demo": "https://select2.org/",
77
"keywords": [
88
"jquery"

dist/css/select2.css

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@
4747
margin-top: 5px;
4848
margin-left: 5px;
4949
padding: 0;
50-
max-width: 100%; }
50+
max-width: 100%;
51+
resize: none;
52+
height: 18px;
53+
vertical-align: bottom;
54+
font-family: sans-serif;
55+
overflow: hidden;
56+
word-break: keep-all; }
5157
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
5258
-webkit-appearance: none; }
5359

@@ -189,23 +195,35 @@
189195
border-radius: 4px;
190196
cursor: text;
191197
padding-bottom: 5px;
192-
padding-right: 5px; }
198+
padding-right: 5px;
199+
position: relative; }
200+
.select2-container--default .select2-selection--multiple.select2-selection--clearable {
201+
padding-right: 25px; }
193202
.select2-container--default .select2-selection--multiple .select2-selection__clear {
194203
cursor: pointer;
195-
float: right;
196204
font-weight: bold;
197205
height: 20px;
198206
margin-right: 10px;
199207
margin-top: 5px;
208+
position: absolute;
209+
right: 0;
200210
padding: 1px; }
201211
.select2-container--default .select2-selection--multiple .select2-selection__choice {
202212
background-color: #e4e4e4;
203213
border: 1px solid #aaa;
204214
border-radius: 4px;
215+
box-sizing: border-box;
205216
display: inline-block;
206217
margin-left: 5px;
207218
margin-top: 5px;
208-
padding: 0; }
219+
padding: 0;
220+
padding-left: 20px;
221+
position: relative;
222+
max-width: 100%;
223+
overflow: hidden;
224+
text-overflow: ellipsis;
225+
vertical-align: bottom;
226+
white-space: nowrap; }
209227
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
210228
cursor: default;
211229
padding-left: 2px;
@@ -220,7 +238,10 @@
220238
cursor: pointer;
221239
font-size: 1em;
222240
font-weight: bold;
223-
padding: 0 4px; }
241+
padding: 0 4px;
242+
position: absolute;
243+
left: 0;
244+
top: 0; }
224245
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
225246
background-color: #f1f1f1;
226247
color: #333;

0 commit comments

Comments
 (0)