Skip to content

Commit 9ce61fd

Browse files
authored
Merge pull request #5975 from select2/develop
Release Select2 4.1.0-rc.0
2 parents 1c0c2a9 + 3c4c4da commit 9ce61fd

Some content is hidden

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

100 files changed

+644
-143
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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Third party developers have created plugins for platforms which allow Select2 to
4646

4747
Plugins
4848

49+
* [Backdrop CMS][backdrop-cms] - [backdrop-select2]
4950
* [Django]
5051
- [django-autocomplete-light]
5152
- [django-easy-select2]
@@ -132,6 +133,8 @@ Support this project with your organization. Your logo will show up here with a
132133
[releases]: https://github.com/select2/select2/releases
133134

134135
[angularjs]: https://angularjs.org/
136+
[backdrop-cms]: https://backdropcms.org/
137+
[backdrop-select2]: https://backdropcms.org/project/select2
135138
[bootstrap3]: https://getbootstrap.com/
136139
[bootstrap4]: https://getbootstrap.com/
137140
[django]: https://www.djangoproject.com/

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: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@
4646
font-size: 100%;
4747
margin-top: 5px;
4848
margin-left: 5px;
49-
padding: 0; }
49+
padding: 0;
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; }
5057
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
5158
-webkit-appearance: none; }
5259

@@ -188,23 +195,35 @@
188195
border-radius: 4px;
189196
cursor: text;
190197
padding-bottom: 5px;
191-
padding-right: 5px; }
198+
padding-right: 5px;
199+
position: relative; }
200+
.select2-container--default .select2-selection--multiple.select2-selection--clearable {
201+
padding-right: 25px; }
192202
.select2-container--default .select2-selection--multiple .select2-selection__clear {
193203
cursor: pointer;
194-
float: right;
195204
font-weight: bold;
196205
height: 20px;
197206
margin-right: 10px;
198207
margin-top: 5px;
208+
position: absolute;
209+
right: 0;
199210
padding: 1px; }
200211
.select2-container--default .select2-selection--multiple .select2-selection__choice {
201212
background-color: #e4e4e4;
202213
border: 1px solid #aaa;
203214
border-radius: 4px;
215+
box-sizing: border-box;
204216
display: inline-block;
205217
margin-left: 5px;
206218
margin-top: 5px;
207-
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; }
208227
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
209228
cursor: default;
210229
padding-left: 2px;
@@ -219,7 +238,10 @@
219238
cursor: pointer;
220239
font-size: 1em;
221240
font-weight: bold;
222-
padding: 0 4px; }
241+
padding: 0 4px;
242+
position: absolute;
243+
left: 0;
244+
top: 0; }
223245
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
224246
background-color: #f1f1f1;
225247
color: #333;

0 commit comments

Comments
 (0)