1
0
mirror of synced 2024-11-21 20:46:07 +03:00
Commit Graph

2396 Commits

Author SHA1 Message Date
Igor Vaynberg
c4fe2fffbd remove outline from dropdown 2019-11-06 10:34:02 -08:00
Igor Vaynberg
6705eafc7f fix incorrect dropdown behavior when multi+openOnFocus and selection is made via mouse 2019-11-06 10:32:02 -08:00
Igor Vaynberg
92ca33cd74 only show placeholder if there are no items selected. closes #5606 2019-08-13 08:41:53 -07:00
Igor Vaynberg
cb9c47af67 make sure remove buttons do not submit forms 2019-08-08 15:47:13 -07:00
Igor Vaynberg
4e8d3d6e11 fix value of aria-setsize being incorrectly set in some cases 2019-07-18 12:44:33 -07:00
Igor Vaynberg
f2c4a19bfc add label to one of focus grabbers to facilitate screen reader testing 2019-07-18 12:44:02 -07:00
Igor Vaynberg
32b8818c1b clicking down arrow or enter in multisearch combo now expands, closes #5565 2019-07-17 08:13:24 -07:00
Igor Vaynberg
44a88a9c56 add tooltip for expand buttons, closes #5566 2019-07-17 08:05:48 -07:00
Igor Vaynberg
54a388de15 add placeholder support for multiselect, closes #5569 2019-07-17 07:53:40 -07:00
Igor Vaynberg
af901bafaa use correct options in createMultiSelect 2019-06-27 17:33:40 -07:00
Igor Vaynberg
09494074b8 update dist building 2019-06-27 16:50:00 -07:00
Igor Vaynberg
767d01984b define data format, separate options into multi and single to make them more clear 2019-06-27 16:48:13 -07:00
Igor Vaynberg
6c00b633fc added license banner 2019-06-27 08:42:41 -07:00
Igor Vaynberg
14f5a33dfe remove box shadow from search box 2019-06-27 08:14:02 -07:00
Igor Vaynberg
b7e016fd5d attribute tweaks 2019-06-26 23:12:18 -07:00
Igor Vaynberg
1d8cef3430 close on blur in multiselect 2019-06-26 21:18:41 -07:00
Igor Vaynberg
70aa673899 add 'data' query helper 2019-06-26 20:17:57 -07:00
Igor Vaynberg
5df21c9286 cleanup dot files and dev/dist 2019-06-25 15:29:18 -07:00
Igor Vaynberg
1eabe8379c initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
Kevin Brown
04fce55967
Merge pull request #5507 from select2/develop
Release Select2 4.0.7
2019-05-07 16:14:21 -04:00
Kevin Brown
f8193c6c82
Merge pull request #5506 from select2/release/4.0.7
[Release] 4.0.7
2019-05-07 16:08:47 -04:00
Kevin Brown
5285eef7b5 Recompile dist for 4.0.7 2019-05-07 16:05:00 -04:00
Kevin Brown
20ffd1296a Bump versions for 4.0.7 release 2019-05-07 16:02:59 -04:00
Kevin Brown
d0ddab6ceb
Merge pull request #5494 from select2/develop
Release Select2 4.0.7-rc.0
2019-04-30 23:44:31 -04:00
Kevin Brown
df3c343490
Merge pull request #5493 from select2/release/4.0.7-rc.0
[Release] 4.0.7-rc.0
2019-04-30 23:41:42 -04:00
Kevin Brown
2596f2ab9c Update changelog for 4.0.7-rc.0 release 2019-04-30 23:37:24 -04:00
Kevin Brown
647533e981 Recompile dist for 4.0.7-rc.0 release 2019-04-30 23:37:08 -04:00
Kevin Brown
48e2f56fea Bump versions for 4.0.7-rc.0 release 2019-04-30 23:33:21 -04:00
Carlos Abalde
f6c455cea9 Do not close on select if Ctrl or Meta (Cmd) keys are being held as described in #3400 (#5222)
Fixes #3400
2019-04-30 23:29:11 -04:00
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