1
0
mirror of synced 2024-11-22 21:16:10 +03:00
Commit Graph

2367 Commits

Author SHA1 Message Date
Kevin Brown
2a5f46bcc4
Move almost and jquery-mousewheel to devDependencies (#5489)
These two are required at build time to generate the full builds
of Select2 (for jQuery Mousewheel) and to inject the AMD loader
(for Almond.js). They are not required for anyone who depends on
Select2, since jQuery Mousewheel is an optional dependency.

This may result in some people needing to add jQuery Mousewheel to
their projects as a required dependency, if they were expecting
it to be added by Select2 before.
2019-04-30 23:15:22 -04:00
Austin S. Hemmelgarn
39bfabd94b Revert PR #5356. (#5492)
It doesn't really do what it says it does, and it introduces other
issues (single select elements re-open after selection).

Fixes #5490
2019-04-30 23:13:50 -04:00
Takashi Kanemoto
6009970b10 docs: add link to @ttskch/select2-bootstrap4-theme to README.md (#5487) 2019-04-28 00:06:02 -04:00
Kevin Brown
5dcc1022bf
Merge pull request #5488 from select2/develop
Release Select2 4.0.6
2019-04-27 23:14:15 -04:00
Kevin Brown
3e9809d715 Update changelog for 4.0.6 release 2019-04-27 23:02:30 -04:00
Kevin Brown
a2bfa6c867 Recompile dist for 4.0.6 release 2019-04-27 22:43:33 -04:00
Kevin Brown
a8ea4cc3e3 Bump versions for 4.0.6 release 2019-04-27 22:42:34 -04:00
Kevin Brown
b4aa3529f3 Removed unused files
* select2.jquery.json - This was previously used by the jQuery Plugin
  Registry which was shut down and put into read-only mode a few
  years ago. Since nobody else appears to use this file, it doesn't
  make sense for us to keep bumping the version in it and keeping it
  up to date.
* vendor/ - This was needed back when the full version of Select2
  actually bundled its own version of jQuery. Since we never actually
  did this, we no longer need to keep the copy of jQuery around.
2019-04-24 17:25:35 -04:00
Kevin Brown
650035cf38
Restore compatibility with data-* attributes in jQuery 2.x (#5486)
* Start running tests against jQuery 2.x

We were only running tests against jQuery 1.x before and they were
all passing. This was a problem because apparently all of the data-*
attribute tests fail in jQuery 2.x.  We are now running both the
integration and unit tests against both jQuery 1.x and jQuery 2.x.

Right now this resulted in a complete duplication of the test files
because there wasn't an obvious way to run the tests against both
versions. We're going to look into removing this duplication in the
future once the current issues are fixed.

We are also going to look into testing against jQuery 3.x in the
future, since that is also a supported line of jQuery.

* Force the data-* attributes to be parsed

There was a change made that switched us from using `$.data` and
`$.fn.data` internally to using an internal data store (managed
through internal utilities). This had the unfortunate side effect
of breaking the automatic loading of data-* options in versions of
jQuery other than 1.x, which included anything that would be
considered modern jQuery. While the change was made and approved
in good faith, all of the tests passed and the docs pages appeared
to be working, the tests really failed when running on newer versions
of jQuery. This was confirmed when we started running automated tests
against both versions, which confirmed the bug that others have been
seeing for a while.

The change was made becuase calling `$.fn.data` on an element which
contains a reference to itself in the internal jQuery data cache
would cause a stack overflow. This bug was well documented at the
following GitHub ticket and was resolved by no longer using
`$.fn.data`: https://github.com/select2/select2/issues/4014

Unfortunately because `$.fn.data` was no longer being called in a
way such that all of the data attributes would be dumped out, we
needed to find a replacement. The substitute that was given in the
original bug fix worked when the data cache was fully primed, but
we never primed it anywhere so it actually failed in the general
case. That meant we needed to find a way to manually prime it,
which is exactly what this change does.

* Clean up select2/utils
2019-04-27 22:20:56 -04:00
Kevin Brown
9f8b6fff40
[WIP] Get Grunt consistently working again (#5466)
Get Grunt consistently working again
2019-03-19 23:16:01 -04:00
Anastasios Gogos
5977856d81 minor fix (greek omega used has no diacritic) (#5464)
replaced \u03C9 (GREEK SMALL LETTER OMEGA: ω)
with \u03CE (GREEK SMALL LETTER OMEGA WITH TONOS: ώ)
2019-03-18 23:19:52 -04:00
Rodrigo
a9c1b617fa Update composer to remove deprecated dependency (#5165) 2019-03-18 22:36:26 -04:00
MaximAL
9032705e2a More suitable spelling ещё instead of еще (#5401) 2019-03-12 22:13:49 -04:00
Thanh Phan
97c5304518 Update Vietnamese (vi) translation (#5387) 2019-03-12 22:10:00 -04:00
Kevin Brown
b3705b13be Enable the Stale integration
Right now we have a ton of old, stale tickets and this should allow us to get a hold of the problem and try to get ahead of it.
2019-03-12 22:07:42 -04:00
Nisha Kaushik
14a059d7ee #4530 Add tooltip (title) to the 'remove all' 'X' icon. (#5291)
* #4530 Add tooltip (title) to the 'remove all' 'X' icon.

* #4530 Add tooltip (title) to the 'remove all' 'X' icon.

* #4530 Add tooltip (title) to the 'remove all'

* Revert dist folder.

* add tk.js from pull request.
2018-09-15 16:22:54 -03:00
Pedro Felipe de Azevedo Furtado
933189b92e
Update base.js 2018-09-15 01:14:25 -03:00
Pedro Felipe de Azevedo Furtado
db30f66afc
Update focusing-tests.js 2018-09-15 00:17:56 -03:00
Stephen
aac9916894 add cdn badges (#5167) 2018-09-15 00:06:14 -03:00
Pedro Felipe de Azevedo Furtado
c2acb18509
Update focusing-tests.js 2018-09-14 23:54:19 -03:00
Pedro Felipe de Azevedo Furtado
1062187958
Update defaults.js 2018-09-14 23:40:28 -03:00
Simon Charette
1764b8420f Added the right single quotation mark to diactritics. (#4337)
It should be simplified to a typewriter apostrophe.
2018-09-11 16:43:45 -03:00
Pedro Felipe de Azevedo Furtado
8bc269d63e
Update base.js (#5357) 2018-09-11 15:32:24 -03:00
Pedro Felipe de Azevedo Furtado
2ea17181e3
PR for -> autofocus isn't supported #3696 (#5356)
* Update core.js

* Update core.js

* Update core.js
2018-09-11 15:28:59 -03:00
Eliyas Hossain
e15046e959 Add Bangla (bn) localization (#5248) 2018-09-07 10:48:32 -03:00
Bowei Han
2b049c08ab Add scrollAfterSelect as a configurable option for multiselect dropdowns to allow toggling of highlightFirstItem() behaviour (#5150)
* Add scrollOnSelect as a configurable option

* default scrollOnSelect to true to avoid modifying existing behaviour

* added tests and default option for scrollAfterSelect
2018-09-05 17:36:20 -03:00
mlpo
e67c9aa34d Add missing diacritics to diacritics.js (#4118) 2018-09-05 14:31:46 -03:00
Alfredo Barron
2c613555ec Add integration in Angularjs (#4331) 2018-09-05 14:29:52 -03:00
Michael J Erwin
7c50570624 fix typo in comment in attachBody.js (#5182) 2018-09-05 14:27:11 -03:00
Pedro Felipe de Azevedo Furtado
60ee4a1179
Revert "Fix pluralization (#5307)" (#5354)
This reverts commit 5968dccc4c.
2018-09-04 22:14:22 -03:00
Albin
5968dccc4c Fix pluralization (#5307)
The test return always 's' in translations : inputTooLong, inputTooShort, maximumSelected
2018-09-04 22:13:50 -03:00
Tim Graham
ec7c57c288 Fix typos in comments (#5336) 2018-09-04 22:11:36 -03:00
Christian Fritsch
9e613ff22e Add drupal plugin (#5349) 2018-09-04 22:09:39 -03:00
Samundra Shrestha
d1a57156f7 Add Nepali (ne) localization (#5295)
* Add Nepali (np) localization

* rename np.js to ne.js

Closes #5294
2018-05-24 23:01:22 -04:00
Avtandil Kikabidze
3fb9e4fceb Add georgian (ka) localization (#5179)
* Add georgian (ka) localization

* Fix jshint warning

* Minor fix
2018-02-11 16:36:11 -05:00
ebejko
4346273721 Add Albanian localization (#5199)
* Add Albanian localization

* Fix travis error

* Rename al.js to sq.js
2018-02-11 16:31:24 -05:00
alexweissman
c90adc102b update changelog and compile+minify for 4.0.6-rc.1 2017-11-21 23:16:57 -05:00
rodrigo.perez
34e8b695f0 Fix up arrow error when there is no options 2017-11-21 20:38:03 -05:00
N'Bayramberdiyev
0087114474 Create tk.js 2017-11-21 20:36:26 -05:00
razh
eeba16b9c4 Remove duplicate CSS selector in classic theme
Closes #5100
2017-11-21 20:33:18 -05:00
tchiotludo
0ad18a00b8 Fix french locale 2017-11-21 19:51:39 -05:00
Nadeem Afana
6d0ecbc912 Exposes select2 instance via .data('select2') 2017-11-21 10:34:09 -05:00
alexweissman
5424333425 Merge branch 'hotfix' into develop 2017-11-04 20:49:12 -04:00
alexweissman
e02b34ba0f update jsbin links 2017-11-04 20:48:55 -04:00
alexweissman
14f53e7e41 Fix IE11 issue with select losing focus after selecting an item (#4860) 2017-10-27 12:41:34 -04:00
Tore Olav Kristiansen
bca6a50331 Fixed unit test issue and typo in Norwegian translation 2017-10-27 12:39:31 -04:00
ToreOlavKristiansen
45ee7340e5 Fixed Chrome issue: lost focus after selecting a value 2017-10-27 12:39:22 -04:00
ToreOlavKristiansen
6eee443d67 Fixes IE11 issue with select loosing focus having selected an item. 2017-10-27 12:39:10 -04:00
alexweissman
d9b8624682 bump for 4.0.6-rc.1 2017-10-26 18:22:26 -04:00
alexweissman
a48382e44d compile+minify for 4.0.6-rc.0 2017-10-26 14:19:09 -04:00