Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Select2 4.0.6 #5488

Merged
merged 84 commits into from Apr 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
54e126a
Fixed bug #4014
May 5, 2016
7629826
Updated inputData.js
May 6, 2016
95b1f8b
Reverted a line in base.js regarding tab index.
May 6, 2016
a1dc7f2
Fixed unit tests and updated source code to handle HTML5 attribs.
May 6, 2016
6e96571
Fixed indentation.
May 6, 2016
16e2631
Fixed more indentation issues.
May 6, 2016
fba261c
Fixed EOL to Unix format.
May 6, 2016
5fd270c
Added an integration test to ensure issue does not come back in the f…
May 9, 2016
8663d1b
Fixed jshint warnings
May 9, 2016
b6f0f3a
Fixed line is too long warning for jquery-calls.js
May 9, 2016
b11d6e2
Fix for issue #4632
julianyus Oct 25, 2017
dac0433
bump for 4.0.5-rc.0
alexweissman Oct 25, 2017
58d9836
minor formatting fixes for #5093
alexweissman Oct 25, 2017
7d41ea1
Merge branch 'hotfix' into develop and bump for 4.0.6-rc.0
alexweissman Oct 25, 2017
ef2ef8b
Fix keyboard not closing when closing dropdown on iOS 10 (#4680)
alexweissman Oct 26, 2017
e2c654b
on clear cleared tooltip too when placeholder present
shivamgupta001 Jan 11, 2017
1cf42cf
on clear cleared tooltip too when placeholder present
shivamgupta001 Jan 11, 2017
09688ff
Clear tooltip from `select2-selection__rendered` when selection is cl…
alexweissman Oct 26, 2017
18929d6
Add `;` before beginning of factory wrapper (#5089)
alexweissman Oct 26, 2017
43ffaea
Add style property to package.json (#5019)
soundasleep Aug 25, 2017
10bda78
Fix value not being cleared when unselect event is emitted
gronostajo Sep 26, 2017
04d3a5d
Add dedicated event for clearing
gronostajo Sep 26, 2017
50bf3cd
Implement `clear` and `clearing` events (#5058)
alexweissman Oct 26, 2017
c56c20c
Fix AJAX data source error
MichaelMackus May 11, 2016
cd08d80
Check for string value
MichaelMackus Feb 20, 2017
3d8864b
Fix "the results could not be loaded" displaying during AJAX request …
alexweissman Oct 26, 2017
a395ad1
Add failing tests
timothykang Oct 17, 2016
6ff1068
Use `attr` instead of `prop` for `select2-selection__rendered` title …
timothykang Oct 17, 2016
8398788
perform deep merge for Defaults.set()
May 18, 2016
6d35b19
fixing typos in test
May 19, 2016
2270afa
more typos
May 19, 2016
edf1ba1
perform deep merge for Defaults.set() (#4364)
alexweissman Oct 26, 2017
e1cda22
Add role and aria-readonly attributes to single selection dropdown se…
michalkleiner Apr 24, 2017
01d881c
Move role and aria-readonly attributes from render function to bind f…
michalkleiner Apr 24, 2017
254d3ba
Add role and aria-readonly attributes to single selection dropdown va…
alexweissman Oct 26, 2017
7ca9867
Improving .select2-hidden-accessible
ffoodd May 18, 2017
05208f9
Improve `.select2-hidden-accessible` (#4908)
alexweissman Oct 26, 2017
2042920
Removing the double event binding registration of "selection:update" …
alexweissman Oct 26, 2017
16391c3
how the heck did they get a tab in there?
alexweissman Oct 26, 2017
77acc56
fix line length to keep jslint happy
alexweissman Oct 26, 2017
62c4f63
Merge branch 'master' of https://github.com/NadeemAfana/select2 into …
alexweissman Oct 26, 2017
1864a3d
Cache objects in `Utils.__cache` instead of using `$.data` (#4346)
alexweissman Oct 26, 2017
a48382e
compile+minify for 4.0.6-rc.0
alexweissman Oct 26, 2017
d9b8624
bump for 4.0.6-rc.1
alexweissman Oct 26, 2017
6eee443
Fixes IE11 issue with select loosing focus having selected an item.
ToreOlavKristiansen Apr 7, 2017
45ee734
Fixed Chrome issue: lost focus after selecting a value
ToreOlavKristiansen Apr 11, 2017
bca6a50
Fixed unit test issue and typo in Norwegian translation
ToreOlavKristiansen Oct 27, 2017
14f53e7
Fix IE11 issue with select losing focus after selecting an item (#4860)
alexweissman Oct 27, 2017
5424333
Merge branch 'hotfix' into develop
alexweissman Nov 5, 2017
6d0ecbc
Exposes select2 instance via .data('select2')
Nov 19, 2017
0ad18a0
Fix french locale
tchiotludo Nov 10, 2017
eeba16b
Remove duplicate CSS selector in classic theme
razh Nov 8, 2017
0087114
Create tk.js
nbayramberdiyev Nov 12, 2017
34e8b69
Fix up arrow error when there is no options
Nov 14, 2017
c90adc1
update changelog and compile+minify for 4.0.6-rc.1
alexweissman Nov 22, 2017
4346273
Add Albanian localization (#5199)
Feb 11, 2018
3fb9e4f
Add georgian (ka) localization (#5179)
akalongman Feb 11, 2018
d1a5715
Add Nepali (ne) localization (#5295)
samundra May 25, 2018
9e613ff
Add drupal plugin (#5349)
chrfritsch Sep 5, 2018
ec7c57c
Fix typos in comments (#5336)
timgraham Sep 5, 2018
7c50570
fix typo in comment in attachBody.js (#5182)
metame Sep 5, 2018
2c61355
Add integration in Angularjs (#4331)
alfredobarron Sep 5, 2018
e67c9aa
Add missing diacritics to diacritics.js (#4118)
mlpo Sep 5, 2018
2b049c0
Add scrollAfterSelect as a configurable option for multiselect dropdo…
boweihan Sep 5, 2018
e15046e
Add Bangla (bn) localization (#5248)
eliyas5044 Sep 7, 2018
2ea1718
PR for -> autofocus isn't supported #3696 (#5356)
pedrofurtado Sep 11, 2018
8bc269d
Update base.js (#5357)
pedrofurtado Sep 11, 2018
1764b84
Added the right single quotation mark to diactritics. (#4337)
charettes Sep 11, 2018
1062187
Update defaults.js
pedrofurtado Sep 15, 2018
c2acb18
Update focusing-tests.js
pedrofurtado Sep 15, 2018
aac9916
add cdn badges (#5167)
stephengroat Sep 15, 2018
db30f66
Update focusing-tests.js
pedrofurtado Sep 15, 2018
933189b
Update base.js
pedrofurtado Sep 15, 2018
14a059d
#4530 Add tooltip (title) to the 'remove all' 'X' icon. (#5291)
nisha-kaushik Sep 15, 2018
b3705b1
Enable the Stale integration
kevin-brown Mar 13, 2019
97c5304
Update Vietnamese (vi) translation (#5387)
thanhpd Mar 13, 2019
9032705
More suitable spelling `ещё` instead of `еще` (#5401)
maximal Mar 13, 2019
5977856
minor fix (greek omega used has no diacritic) (#5464)
tgogos Mar 19, 2019
9f8b6ff
[WIP] Get Grunt consistently working again (#5466)
kevin-brown Mar 20, 2019
650035c
Restore compatibility with data-* attributes in jQuery 2.x (#5486)
kevin-brown Apr 28, 2019
b4aa352
Removed unused files
kevin-brown Apr 24, 2019
a8ea4cc
Bump versions for 4.0.6 release
kevin-brown Apr 28, 2019
a2bfa6c
Recompile dist for 4.0.6 release
kevin-brown Apr 28, 2019
3e9809d
Update changelog for 4.0.6 release
kevin-brown Apr 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/stale.yml
@@ -0,0 +1,14 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
# Label to use when marking an issue as stale
staleLabel: "status: stale"
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
38 changes: 38 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,43 @@
# Change Log

## 4.0.6

### New features/improvements
- Add style property to package.json (#5019)
- Implement `clear` and `clearing` events (#5058)
- Add `scrollAfterSelect` option (#5150)
- Add missing diacritics (#4118, #4337, #5464)

### Bug fixes
- Fix up arrow error when there are no options in dropdown (#5127)
- Add `;` before beginning of factory wrapper (#5089)
- Fix IE11 issue with select losing focus after selecting an item (#4860)
- Clear tooltip from `select2-selection__rendered` when selection is cleared (#4640, #4746)
- Fix keyboard not closing when closing dropdown on iOS 10 (#4680)
- User-defined types not normalized properly when passed in as data (#4632)
- Perform deep merge for `Defaults.set()` (#4364)
- Fix "the results could not be loaded" displaying during AJAX request (#4356)
- Cache objects in `Utils.__cache` instead of using `$.data` (#4346, #5486)
- Removing the double event binding registration of `selection:update` (#4306)

#### Accessibility
- Improve `.select2-hidden-accessible` (#4908)
- Add role and aria-readonly attributes to single selection dropdown value (#4881)

### Translations
- Add Turkmen translations (`tk`) (#5125)
- Fix error in French translations (#5122)
- Add Albanian translation (`sq`) (#5199)
- Add Georgian translation (`ka`) (#5179)
- Add Nepali translation (`ne`) (#5295)
- Add Bangla translation (`bn`) (#5248)
- Add `removeAllItems` translation for clear "x" title (#5291)
- Fix wording in Vietnamese translations (#5387)
- Fix error in Russian translation (#5401)

### Miscellaneous
- Remove duplicate CSS selector in classic theme (#5115)

## 4.0.5

### Bug fixes
Expand Down
126 changes: 3 additions & 123 deletions Gruntfile.js
Expand Up @@ -62,10 +62,6 @@ module.exports = function (grunt) {
grunt.initConfig({
package: grunt.file.readJSON('package.json'),

clean: {
docs: ['docs/_site']
},

concat: {
'dist': {
options: {
Expand Down Expand Up @@ -124,88 +120,10 @@ module.exports = function (grunt) {
}
},

'saucelabs-qunit': {
all: {
options: {
build: testBuildNumber,
tags: ['tests', 'qunit'],
urls: testUrls,
testTimeout: 8000,
testname: 'QUnit test for Select2',
browsers: [
{
browserName: 'internet explorer',
version: '8',
platform: 'Windows 7'
},
{
browserName: 'internet explorer',
version: '9',
platform: 'Windows 7'
},
{
browserName: 'internet explorer',
version: '10',
platform: 'Windows 7'
},

{
browserName: 'internet explorer',
version: '11',
platform: 'Windows 10'
},

{
browserName: 'firefox',
platform: 'linux'
},

{
browserName: 'chrome',
platform: 'linux'
},

{
browserName: 'opera',
version: '12',
platform: 'linux'
}
]
}
}
},

'gh-pages': {
options: {
base: 'docs',
branch: 'master',
clone: 'node_modules/grunt-gh-pages/repo',
message: 'Updated docs with master',
push: true,
repo: 'git@github.com:select2/select2.github.io.git'
},
src: '**'
},

jekyll: {
options: {
src: 'docs',
dest: 'docs/_site'
},
build: {
d: null
},
serve: {
options: {
serve: true,
watch: true
}
}
},

jshint: {
options: {
jshintrc: true
jshintrc: true,
reporterOutput: ''
},
code: {
src: ['src/js/**/*.js']
Expand Down Expand Up @@ -240,19 +158,6 @@ module.exports = function (grunt) {
}
},

symlink: {
docs: {
cwd: 'dist',
expand: true,
overwrite: false,
src: [
'*'
],
dest: 'docs/dist',
filter: 'isDirectory'
}
},

requirejs: {
'dist': {
options: {
Expand Down Expand Up @@ -331,19 +236,14 @@ module.exports = function (grunt) {
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-symlink');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-jekyll');
grunt.loadNpmTasks('grunt-saucelabs');
grunt.loadNpmTasks('grunt-sass');

grunt.registerTask('default', ['compile', 'test', 'minify']);
Expand All @@ -356,25 +256,5 @@ module.exports = function (grunt) {
grunt.registerTask('minify', ['uglify', 'sass:dist']);
grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']);

var ciTasks = [];

ciTasks.push('compile');
ciTasks.push('connect:tests');

/*
// grunt-saucelabs appears to be broken with Travis altogether now.
// Can't run Sauce Labs tests in pull requests
if (process.env.TRAVIS_PULL_REQUEST == 'false') {
ciTasks.push('saucelabs-qunit');
}
*/

ciTasks.push('qunit');
ciTasks.push('jshint');

grunt.registerTask('ci', ciTasks);

grunt.registerTask('docs', ['symlink:docs', 'jekyll:serve']);

grunt.registerTask('docs-release', ['default', 'clean:docs', 'gh-pages']);
grunt.registerTask('ci', ['compile', 'test']);
};
8 changes: 8 additions & 0 deletions README.md
@@ -1,6 +1,8 @@
Select2
=======
[![Build Status][travis-ci-image]][travis-ci-status]
[![cdnjs](https://img.shields.io/cdnjs/v/select2.svg)](https://cdnjs.com/libraries/select2)
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/select2/badge)](https://www.jsdelivr.com/package/npm/select2)

Select2 is a jQuery-based replacement for select boxes. It supports searching,
remote data sets, and pagination of results.
Expand Down Expand Up @@ -51,10 +53,12 @@ Plugins
- [django-autocomplete-light]
- [django-easy-select2]
- [django-select2]
* [Drupal] - [drupal-select2]
* [Meteor] - [meteor-select2]
* [Ruby on Rails][ruby-on-rails] - [select2-rails]
* [Wicket] - [wicketstuff-select2]
* [Yii 2][yii2] - [yii2-widget-select2]
* [Angularjs][angularjs] - [mdr-angular-select2]

Themes

Expand Down Expand Up @@ -106,6 +110,8 @@ The license is available within the repository in the [LICENSE][license] file.
[django-autocomplete-light]: https://github.com/yourlabs/django-autocomplete-light
[django-easy-select2]: https://github.com/asyncee/django-easy-select2
[django-select2]: https://github.com/applegrew/django-select2
[drupal]: https://www.drupal.org/
[drupal-select2]: https://www.drupal.org/project/select2
[flat-ui]: http://designmodo.github.io/Flat-UI/
[meteor]: https://www.meteor.com/
[meteor-select2]: https://github.com/nate-strauser/meteor-select2
Expand All @@ -121,3 +127,5 @@ The license is available within the repository in the [LICENSE][license] file.
[wicketstuff-select2]: https://github.com/wicketstuff/core/tree/master/select2-parent
[yii2]: http://www.yiiframework.com/
[yii2-widget-select2]: https://github.com/kartik-v/yii2-widget-select2
[angularjs]: https://angularjs.org/
[mdr-angular-select2]: https://github.com/modulr/mdr-angular-select2
2 changes: 1 addition & 1 deletion component.json
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.0.5",
"version": "4.0.6",
"demo": "https://select2.org/",
"keywords": [
"jquery"
Expand Down
10 changes: 5 additions & 5 deletions dist/css/select2.css
Expand Up @@ -118,12 +118,14 @@
.select2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important; }
width: 1px !important;
white-space: nowrap !important; }

.select2-container--default .select2-selection--single {
background-color: #fff;
Expand Down Expand Up @@ -420,9 +422,7 @@
color: #555; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
float: right; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
float: right;
margin-left: 5px;
margin-right: auto; }

Expand Down