1
0
mirror of synced 2024-11-26 23:06:02 +03:00
Commit Graph

1940 Commits

Author SHA1 Message Date
Stretch
698fe7b9e1 Focus is lost when the change event is triggered
This closes https://github.com/select2/select2/issues/3332.
2015-06-21 21:40:50 -04:00
Ryan Dale
d2346cc331 Change ALT + UP to close the dropdown instead of opening it
This closes https://github.com/select2/select2/issues/3471.
2015-06-21 20:47:05 -04:00
Kevin Brown
bfaa9e9b41 Recompile dist 2015-06-21 20:31:09 -04:00
Kevin Brown
79cdcc0956 Fix focus wars in multiple selects
In the previous commit (02cca7b) support was added for multiple
selects to automatically focus when they were tabbed into. While
this did actually work, it caused a few bugs with the focus that
prevented users from tabbing out of the container, effectively
trapping keyboard users in Select2.

This makes a few major changes to how things work in Select2, but
should not break any backwards compatibility.

 - The internal `focus` event is now proxied through a `focus`
   method on the core object. This allows for two important things

   1. The `focus` event will only be triggered if Select2 was in an
      unfocused state.
   2. Select2 now (unofficially) supports the `select2('focus')`
      method again.

   But that does mean that it is possible to trigger the `focus`
   event now and not have it propagate throughout the widget. As
   it would previously trigger multiple times, even when Select2
   had not actually lost focus, this is considered a fix to a bug
   instead of a breaking change.

 - The internal `blur` event in selections is only triggered when
   the focus is moved off of all elements within the selection. This
   allows for better tracking of where the focus is within Select2,
   but as a result of the asynchronous approach it does mean that the
   `blur` event is not necessarily synchronous and may be more
   difficult to trace.

 - On multiple selects, the standard selection container is never
   visually focused. Instead, the focus is always shifted over to
   the search box when it is requested. The tab index of the selection
   container is also always copied to the search box, so the search
   will always be in the tab order instead of the selection container.

It's important to note that these changes to the tab order and how
the focus is shifted do not apply to multiple selects that do not
have a search box. Those changes also do not apply to single select
boxes, which will still have the same focus and tabbing behaviours
as they previously did.
2015-06-21 20:07:35 -04:00
Ryan Wallace
02cca7baa7 Allow immediate typing when tabbing to multiple select. 2015-06-21 14:16:31 -04:00
Kevin Brown
19c87d3bae Merge pull request #3502 from itainathaniel/patch-1
Fixed direction bug in RTL mode of the text input
2015-06-20 20:06:51 -04:00
Itai Nathaniel
4811ff2c59 Fixed direction bug in RTL mode of the text input 2015-06-19 18:09:25 +03:00
Kevin Brown
6a08076c18 Merge pull request #3492 from pquentin/master
Replace tabs with spaces for consistency
2015-06-18 16:39:11 -04:00
Quentin Pradet
5efdc35aeb Replace tabs with spaces for consistency 2015-06-18 10:19:56 +02:00
Florian Kissling
117f11da21 Merge pull request #3488 from fk/docs-fix-sidebar-layout
docs: Fix sidebar layout and its jumpy link hover/active states
2015-06-17 16:37:44 +02:00
Florian Kissling
38f02e9c0f Merge pull request #3467 from fk/docs-update-anchorjs
docs: Update AnchorJS from v0.3.1 to 1.1.1.
2015-06-17 16:37:18 +02:00
Florian Kissling
82a7e27984 Fix the sidebar layout and its jumpy link hover/active states. 2015-06-17 16:27:10 +02:00
Kevin Brown
60a87728b0 Merge pull request #3477 from wiraqutra/master
Add Japanese translation
2015-06-15 07:59:19 -04:00
Seigo ISHINO
2dcc9ef18b Add Japanese translation 2015-06-15 14:30:08 +09:00
Kevin Brown
6b0ff9f5bd Merge pull request #3473 from kahwee/master
Upgraded dev dependency grunt-sass to "^1.0.0".
2015-06-12 18:59:38 -04:00
KahWee Teng
eecbcceb9b Upgraded dev dependency grunt-sass to "^1.0.0".
Remove explicit node-sass dependency since it is included as part of grunt-sass.
2015-06-12 23:53:47 +08:00
Kevin Brown
d7e137f8a8 Merge pull request #3464 from molily/issues/3446
ContainerCss: Remove magic `:all:` correctly. Fixes #3446.
2015-06-11 09:44:22 -04:00
Mathias Schaefer (molily)
d130bd4fa7 DropdownCSS: Remove magic :all: correctly. 2015-06-11 12:09:02 +02:00
Florian Kissling
ebecea1f98 Update AnchorJS from v0.3.1 to 1.1.1. 2015-06-11 03:45:31 +02:00
Kevin Brown
04a4e41504 Merge pull request #3324 from stretch4x4/MultiSelectStyling
Adding container support issue #3222
2015-06-10 20:09:28 -04:00
Kevin Brown
599de5bdaf Merge pull request #3454 from stretch4x4/3326-MaximumSelection-documentation
#3326 Maximum selection example
2015-06-10 19:56:04 -04:00
Mathias Schaefer (molily)
62b2391972 ContainerCss: Remove magic :all: correctly. Fixes #3446. 2015-06-10 23:15:43 +02:00
Stretch
e60ab22a85 Adding single select support and testing 2015-06-10 20:05:07 +10:00
Stretch
d91dfecd98 #3326 Maximum selection example
Fixing the documentation for maximumselectionlength
2015-06-10 18:59:09 +10:00
Kevin Brown
44cd938dce Merge pull request #3376 from select2/docs-improvements
New documentation theme
2015-06-07 20:47:59 -04:00
Florian Kissling
42739b780e Merge branch 'master' into docs-improvements
Conflicts:
	docs/examples.html

In the docs-improvements branch, the docs examples live in partials located in docs/_includes/examples.
The updated AJAX example code from https://github.com/select2/select2/pull/3357 – the conflicting addition to docs/examples.html – has been ported to the appropiate partial in docs/_includes/examples.data.html.
2015-06-08 02:27:33 +02:00
Florian Kissling
691dfe5340 Tidy and simplify CSS; add very basic documentation. 2015-06-08 01:46:53 +02:00
Florian Kissling
14e1c4d5f9 JavaScript indention. 2015-06-07 17:05:17 +02:00
Florian Kissling
44c64cf6da Replace "..." with an ellipsis, fix a typo. 2015-06-07 16:42:20 +02:00
Florian Kissling
2b8865b3b3 Indention, whitespace. 2015-06-07 16:40:00 +02:00
Florian Kissling
2c627b4875 Fix layout. 2015-06-07 01:03:37 +02:00
Florian Kissling
ab3d5ee884 Ditch Sass' indented syntax. 2015-06-07 00:46:05 +02:00
Florian Kissling
419242fc16 Nesting, whitespace. 2015-06-06 15:32:11 +02:00
Kevin Brown
b4a44ccfdf Adjusted the home page text
This adds the final box, which I've chosen to be for the browser
support (though that can be changed).

The last two boxes on the first row have also been swapped, partially
because the text sizes now match the second row, but also because
the AJAX support should be more prominent than the theme support.
2015-05-31 16:15:55 -04:00
Kevin Brown
038c709c8b Adjusted some wording 2015-05-31 15:11:01 -04:00
Kevin Brown
21bac6a6d8 Updated front page features
This adds correct links to the linked text on the front page under
the features section. There is still one panel which needs to be
written, the last one that includes the AJAX text again, before it
can really be considered finished.

The wording around the Bootstrap theme was adjusted pending further
discussion about how that is going to be handled.
2015-05-31 14:53:39 -04:00
Kevin Brown
bd6148e39f Merge pull request #3350 from cvrebert/patch-1
bower.json: main: select2.css => core.scss
2015-05-24 20:17:20 -04:00
Kevin Brown
fdb2b6aaf2 Merge pull request #3375 from vyrotek/patch-1
Fixed AjaxAdapter's super constructor call
2015-05-19 19:52:46 -04:00
Jason
da5a72c3ac Fixed AjaxAdapter's super constructor call
Replaced ArrayAdapter super constructor call with correct AjaxAdapter super constructor call. This will allow users to initialize an Ajax select with data.
2015-05-19 16:10:16 -07:00
Kevin Brown
dd9af68934 Merge pull request #3357 from pgilad/patch-1
Update ajax example to reflect pagination
2015-05-13 10:42:21 -04:00
Gilad Peleg
45cfac7456 Update ajax example to reflect pagination 2015-05-13 17:34:38 +03:00
Chris Rebert
b0a1192716 bower.json: main: select2.css => core.scss
Per bower/bower.json-spec#43 :
> Use source files with module exports and imports over pre-built distribution files.

Also, the example in that PR includes
/sass/motion.scss in and excludes
/dist/movement.css & /dist/movement.min.css
from its `main`.
2015-05-12 22:14:39 -07:00
Florian Kissling
87f5425464 Drop "_s2-docs-" prefix from Sass partials. 2015-05-08 04:14:41 +02:00
Florian Kissling
14c6113eef Fix indention. 2015-05-08 04:08:31 +02:00
Florian Kissling
922d54615f Fix indention, consistently declare anchor-nav relevant IDs for <h1> (instead of <section>). 2015-05-08 03:41:52 +02:00
Florian Kissling
dc679f7cbd Add a "feature overview" section to the homepage.
While I'm not too happy with things as they currently are, it's a start.
This also removes the icon from the "Download" button.
2015-05-08 03:29:16 +02:00
Florian Kissling
a2ff7a6046 Move button-specific CSS to partial. 2015-05-08 03:21:42 +02:00
Florian Kissling
bc3ce2c5b4 Navigation CSS improvements. 2015-05-08 02:47:20 +02:00
Stretch
581af39288 #3222 test cleanup
Improving my test from feedback.
2015-05-08 08:03:46 +10:00
Florian Kissling
fa421cdfc0 Fix footer border color. 2015-05-07 18:57:06 +02:00