leipie
bc2c780449
Fix tabindexing
...
Actually set tabindex on the select2-focusser for focussing on tab
navigation
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2013-04-10 12:43:30 -07:00
Igor Vaynberg
f582d8ae15
Merge pull request #979 from mynameistechno/master
...
Fixes #291
2013-04-10 12:30:05 -07:00
Igor Vaynberg
92e2c6d56f
Merge pull request #1073 from norlin/master
...
Fix initSelection method with empty input value
2013-04-10 08:22:10 -07:00
Igor Vaynberg
dc27a5b74d
add a rejectable select event. fixes #1053
2013-04-09 19:53:11 -07:00
Igor Vaynberg
2bf5a763c5
fix keystroke dropping when single select is opened by typing in unopened state really fast. fixes #949
2013-04-09 18:58:30 -07:00
Igor Vaynberg
bd2a8c6d84
centralize option tag to data element translation
2013-04-09 15:11:39 -07:00
Igor Vaynberg
49e9908656
Merge pull request #1162 from leipie/master
...
Fix IE8 clickable issues
2013-04-09 09:54:49 -07:00
Igor Vaynberg
598773258e
fixes #1163 fixes #1160 fixes #1129
2013-04-09 09:51:24 -07:00
leipie
d1c81dfbe2
Make select whole select clickable in IE8
2013-04-09 17:12:01 +02:00
Igor Vaynberg
511c1b8728
when resolving width use case insensitive expression. fixes #1065
2013-04-08 16:25:46 -07:00
Igor Vaynberg
de07ba2b16
apply offscreen class after calculating width because offscreen class resets the width. also use css('width') when copying width if it returns a usable value. fixes #1140 . fixes #1079
2013-04-08 16:24:15 -07:00
Igor Vaynberg
d80ec81199
Merge pull request #1055 from jessefoster/autoDropdownWidth
...
Add option to automatically size dropdown width
2013-04-03 09:16:01 -07:00
Dmitrii Chekaliuk
aedcc10b8f
Fix focus issue on multi-value select
...
Inside the multi-value select box, when you hit backspace next to the
choice, it gets the `select2-search-choice-focus` class, but that class
is not being removed when select box loses the focus.
2013-03-28 02:29:59 +02:00
Igor Vaynberg
2f69290e2d
Merge pull request #1095 from nolamesa/patch-1
...
Fix for random scrolling when using hierarchical data
2013-03-26 12:19:35 -07:00
Igor Vaynberg
f9f76d8b4c
remove debug statement
2013-03-26 08:48:54 -07:00
nolamesa
5b0bbfeb7c
Fix for random scrolling when using hierarchical data
...
When using hierarchical data there is a random scroll jump when hovering over select options. The reason is that in the case of hierarchical data the highlightable choices are <ul> and thus their outer height is many pixels (includes the children's height as well). A fix is to make the height calculations by using the the label divs.
2013-03-26 14:49:02 +02:00
Igor Vaynberg
7a3d3dcd2b
Revert "Added ajax.transport support to default options"
...
This reverts commit 04a6535bd5
.
2013-03-25 09:17:19 -07:00
Igor Vaynberg
94c1706c67
clear off active class when closing. #1089
2013-03-25 08:57:35 -07:00
Igor Vaynberg
519070b11d
fix label focussing bug on ios. fixes #1008 .
2013-03-25 08:54:01 -07:00
Igor Vaynberg
45559654bc
fixes #1057
2013-03-25 08:54:01 -07:00
Igor Vaynberg
a624417556
Merge pull request #1083 from rvignacio/default_ajax.transport
...
Added ajax.transport default option
2013-03-23 21:22:34 -07:00
rvignacio
04a6535bd5
Added ajax.transport support to default options
2013-03-23 17:26:37 -03:00
gboer
ea39b25bf6
Update select2.js
...
Fix for when you specify tags using JSON-encoded select2-tags-attribute.
And thank you for properly implementing my (earlier) submitted hack :)
2013-03-23 15:05:16 +01:00
norlin
c8cae0a6c9
fix initSelection with empty input value
2013-03-22 10:14:39 +04:00
ZhongYou
6a58e99285
trigger "focus" event in focus function make chrome error:
...
"Uncaught RangeError: Maximum call stack size exceeded"
2013-03-19 18:01:12 +08:00
jfoster
7956d7aee3
Add option to automatically size dropdown width
2013-03-18 19:56:38 -04:00
Igor Vaynberg
9acfc6faa5
prevent duplicate queries
2013-03-14 12:47:46 -07:00
Igor Vaynberg
3be8547584
added new loaded event. fixes #930
2013-03-14 12:00:06 -07:00
Igor Vaynberg
86a8190080
Loading icon doesn't disappear when using tags with auto tokenization. fixes #1005
2013-03-14 11:39:45 -07:00
Igor Vaynberg
b973b56cce
Calling select2('open') on multiple select shows 'No Matches Found'.
2013-03-14 11:31:11 -07:00
Igor Vaynberg
911a0bb082
prevent form from being submitted when enter is pressed in multiselect. fixes #961
2013-03-14 11:14:37 -07:00
Igor Vaynberg
dd34cc5d67
always show spinner during searching. fixes #950 fixes #943
2013-03-14 10:00:25 -07:00
Jens Rantil
5193dc40b9
Fixing grammar
...
I find it hard to "type" less characters. It's sort of unintuitive.
2013-03-13 17:38:34 +01:00
frntz
78312ce33f
Slash doesn't escaped
...
Caused problems during uglify minification
2013-03-13 08:40:47 +01:00
Igor Vaynberg
ae4b24a7e8
workaround for IE when manipulating classes. fixes #937 fixes #1017
2013-03-12 09:27:11 -07:00
Igor Vaynberg
814e8b5bed
fix #1000
2013-03-07 16:04:19 -08:00
Stephen Starkey
e7f2aeaf08
Don't update results if maximumSelectionSize is 0
...
a maximumSelectionSize of zero means unlimited, which means
we shouldn't be updating results if it's set to 0
2013-03-05 10:31:28 -06:00
Mark Matyas
8d424b3202
Fixes #291
2013-03-05 02:19:28 -08:00
Nils Kenneweg
414c376a1a
fixed a bug resetting scroll when loading more data.
2013-03-04 13:54:03 +01:00
Dave Smith
953b6f2ac1
Fix mask height/width when document is shorter than window
...
When the document element (e.g., the body) is shorter than the window,
the select2-drop-mask was not extending all the way to the bottom
of the browser viewport, leading to an area below the body that was
clickable but that select2 did not notice. Thus, if a user clicked
down there, the drop would not disappear. This is particularly
troublesome if the page contains absolutely positioned elements at
the bottom of the browser window.
2013-03-01 15:05:46 -07:00
Igor Vaynberg
66860b2811
Merge pull request #964 from adam-iris/master
...
Fix for issue #934
2013-03-01 10:47:40 -08:00
Igor Vaynberg
debbcfcede
correctly filter out selected options out of elements loaded by infinite scroll. fixes #881
2013-03-01 09:11:45 -08:00
Igor Vaynberg
5ae70eca5f
work around a firefox bug when calculation search width. fixes #944
2013-03-01 08:29:40 -08:00
Igor Vaynberg
31101764ff
add missing element prop to data. fix #936
2013-03-01 00:54:11 -08:00
Igor Vaynberg
8520793f25
workaround for chrome focus bug. fixes #939
2013-02-28 19:47:19 -08:00
Adam
dacf51361d
Default local initSelection returns the actual selected items
...
Fix for issue #934 . The default initSelection uses a matcher to find
items that match the selection, but if the data is hierarchical what
the matcher returns may actually be grouping elements, so they can't be
treated as a list of matching items. This fix runs the matcher but
rather than using its return value it collects the matching item(s)
into a closure-scoped variable and then returns that.
2013-02-27 17:05:19 -08:00
Igor Vaynberg
83d77cfa62
fix search field focussing problems. fixes #922
2013-02-27 08:53:44 -08:00
Vincent Petry
08b75a1798
Do not trigger event when calling clear() from val() with empty value
2013-02-21 10:53:16 +01:00
Igor Vaynberg
cd0adbe913
fix duplicate values in IE. fix #840
2013-02-20 19:06:05 -08:00
Igor Vaynberg
8e9e65f864
Error when clearing a single-select box multiple times. fix #908
2013-02-20 18:36:11 -08:00