1
0
mirror of synced 2024-11-23 21:36:09 +03:00
Commit Graph

1602 Commits

Author SHA1 Message Date
jibwa
92357e61b8 Fix problem with positioning the dropdown when it is on the right hand side of view
In the stable version this line looks like:

dropLeft = offset.left + width - dropWidth;

In line (1193) the variable width is set to dropWidth which means we are always going to end up with 

dropLeft = offset.left + X - X
or
dropLeft = offset.left

Which means we are still aligned to the left of the button.

This current solution from @ef9f1dea is just aligning the select2-drop closer to the center which is not what it did before the dropdownAutoWidth.


The line I submitted worked perfect and my dropdown now aligns to the RHS of the button again as expected.
2013-12-18 16:28:40 -05:00
Guillaume Smet
3d2b91bd7a Fix #1946: remove an hard coded title.
The original title is copied if defined and it's sufficient for accessibility purpose.
We shouldn't force the title attribute, it's especially annoying if people are using
tooltip implementation based on the title attribute such as Bootstrap tooltip.
2013-12-17 17:03:10 +01:00
Igor Vaynberg
5981dcdfcc Merge pull request #1971 from wyuenho/fix_select2_locale_ar_syntax_error
Fix syntax error in Arabic locale file
2013-12-12 08:01:47 -08:00
Jimmy Yuen Ho Wong
62b689d28e Fix syntax error 2013-12-12 18:30:44 +08:00
Igor Vaynberg
39ad3b21e6 Merge pull request #1962 from wyuenho/component
Add component.json
2013-12-11 08:13:44 -08:00
Jimmy Yuen Ho Wong
cdef7d9ed6 Update version for component.json too 2013-12-08 03:28:31 +08:00
Igor Vaynberg
883c750e79 Merge pull request #1963 from wyuenho/fix_select2_locale_ka_syntax_error
Fix georgian locale syntax error
2013-12-07 11:20:59 -08:00
Jimmy Yuen Ho Wong
0505a65fdc Fix georgian locale syntax error 2013-12-07 20:05:42 +08:00
Jimmy Yuen Ho Wong
903aff11ce Add component.json 2013-12-07 20:04:35 +08:00
Igor Vaynberg
c186dc826e better handling for ipads. fixes #1949 2013-12-03 10:21:17 -08:00
Lito
abe7777b0a Fixed string used as regular expression for ID attribute.
Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
2013-12-03 08:32:27 -08:00
Jarreddebeer
89dfa888c9 Correcting git repository url 2013-12-01 16:41:15 +02:00
Igor Vaynberg
fc5ac5b137 Merge pull request #1728 from corinnaerin/master
Compatibility with jQuery 1.9 +
2013-11-29 22:49:06 -08:00
Igor Vaynberg
0a4668bb43 Merge pull request #1423 from adelynx/master
Select2 Arabic Translate.
2013-11-29 22:44:34 -08:00
Igor Vaynberg
f8dda91171 Merge pull request #1014 from sjschukin/patch-1
.select2("data", null) causes an error
2013-11-29 22:40:52 -08:00
Igor Vaynberg
aa0fb730aa Merge pull request #1938 from datapad/data-result-direct-children
Only pick up direct children when retrieving data in 'multiple' mode
2013-11-29 22:24:32 -08:00
Igor Vaynberg
816a46bf1a Merge pull request #1940 from datapad/reset-filtered-dropdown
Fix dropdown items not being reset after filtering and selecting when `closeOnSelect` is `false`
2013-11-29 22:24:05 -08:00
Igor Vaynberg
c0f37eafcb Merge pull request #1923 from riatiger/master
fix for Uncaught TypeError: Object #<Object> has no method 'abort'
2013-11-29 22:12:51 -08:00
Jarreddebeer
89729dd24d Create package.json
There may be some benefits to having a package.json, but the primary reason i'm interested in submitting this is for the jspm override entry, with it we can include select2 as simply as:

http://jsbin.com/upOtaXIR/2/edit

Any questions please shout!
2013-11-28 18:40:08 +02:00
Alek Storm
b5aa4688ea Fix dropdown items not being reset after filtering and selecting when closeOnSelect is false 2013-11-27 17:24:11 -06:00
Alek Storm
e7bd3a3779 Only pick up direct children when retrieving data in 'multiple' mode:
Prevents accidentally returning the selected items of any select2's embedded in the HTML of
this selection's items.
2013-11-27 17:17:15 -06:00
riatiger
50f813c003 fix for Uncaught TypeError
Prevents "Uncaught TypeError: Object #<Object> has no method 'abort'"
error for case when non-jQuery promise is used as a handler (AngularJS
$promise for example).
2013-11-21 19:58:01 +02:00
Igor Vaynberg
0967c67776 Merge pull request #1865 from pborreli/typos
Fixed typos
2013-11-14 08:24:38 -08:00
Igor Vaynberg
bc78b95591 Merge pull request #1903 from fabian/patch-1
Support for Composer
2013-11-14 08:19:49 -08:00
Fabian Vogler
51ffba0563 Added composer.json 2013-11-14 11:41:47 +01:00
Igor Vaynberg
356984d8fe Merge pull request #1891 from jfisheratwork/master
Fix for collision detection regarding enoughRoomOnRight and css border top for drop-auto-width
2013-11-07 13:50:27 -08:00
Jake
ef9f1dea90 Fix for drop-auto-width collision detection and css border top
- collision detection was not moving the drop left based on the
difference between viewport and relative location of box (dropleft +
dropwidth)
- .select2-drop-active was overriding the .select2-drop-auto-width
making the shifted dropbox look a bit wierd
2013-11-07 16:21:52 -05:00
Igor Vaynberg
cb5b684ae5 Merge pull request #1887 from lukinpark/patch-1
Update select2.js
2013-11-07 10:09:07 -08:00
Igor Vaynberg
50698fd51c Merge pull request #1685 from jdecuyper/feature-enable-formatResultCssClass
Enable function formatResultCssClass.
2013-11-07 09:51:38 -08:00
Igor Vaynberg
fc4bbbb5ef Merge pull request #1846 from tpruvot/master
issue #1778: prevent delayed focus when the list is hidden
2013-11-07 07:40:45 -08:00
lukinpark
85de8cc1d6 Update select2.js
above function doesn't work great
2013-11-07 11:45:05 +01:00
Igor Vaynberg
261dad0ee6 Merge pull request #1877 from khaledhosny/master
Styling fixes for RTL direction
2013-11-06 08:37:37 -08:00
Igor Vaynberg
b747806e63 Merge pull request #1883 from dimakura/master
Georgian (Kartuli) language translation
2013-11-06 08:32:26 -08:00
Igor Vaynberg
8361f9a0e6 Merge pull request #1885 from bottomline/master
Initial fix for main accessibility issues
2013-11-06 08:23:27 -08:00
Jonathan Mahoney
78ccc05e04 Accessibility enhancements for single-value elements. Added correct ARIA attributes and associations. Much-improved screen-reader support (tested with NVDA on Firefox 25) 2013-11-06 12:55:12 +00:00
Dimitri Kurashvili
febb9cd03e Georgian (Kartuli) language translation
Georgian (Kartuli) language translation.
2013-11-05 21:00:38 +04:00
Igor Vaynberg
4059d81e6b modified version identifiers in descriptors for release 3.4.5 2013-11-04 08:22:44 -08:00
Igor Vaynberg
d3b65908e3 be sure to pull before releasing 2013-11-04 08:22:33 -08:00
Khaled Hosny
39f9fc79a5 Styling fixes for RTL direction
* Align the selects to the right
* Place the close button on the left to not cover parts of the label.
2013-11-04 08:07:39 +02:00
Pascal Borreli
9725363ada Fixed typos 2013-10-31 23:20:45 +00:00
Igor Vaynberg
9187ab0c12 Merge pull request #1859 from mxab/master
fixed invalid index in buildChangeDetails, fixes #1858
2013-10-31 15:05:29 -07:00
Max Bruchmann
2d13c0a00a fixed invalid index in buildChangeDetails, fixes #1858 2013-10-31 17:55:19 +01:00
Tanguy Pruvot
b757fb987d issue #1778: prevent delayed focus when the list is hidden
This reset the focus color when the TAB key is pressed.
2013-10-28 11:37:45 +01:00
Igor Vaynberg
cb7aefaeda fix keyboard removal of choices. fixes #1839 2013-10-26 07:57:53 -07:00
Igor Vaynberg
7fb1d01f64 modified version identifiers in descriptors for release 3.4.4 2013-10-24 13:23:11 -07:00
Igor Vaynberg
f8de47481f Merge pull request #1819 from jrlynchii/master
Modified syncCssClasses to use output of adapter when applying classes.
2013-10-20 19:22:24 -07:00
Riley Lynch
53d1fea248 Modified syncCssClasses to use output of adapter when applying a class rather than applying the original class 2013-10-20 13:14:31 -07:00
Igor Vaynberg
8647d51fd6 Merge pull request #1808 from cmcnulty/#1807-Mutation-Observer
#1807 add support for MutationObserver
2013-10-17 15:09:03 -07:00
cmcnulty
d5297ccd6d #1807 add support for MutationObserver
Better support mutation events in Firefox
2013-10-17 15:09:02 -05:00
Igor Vaynberg
92c6cef6cb Merge pull request #1801 from bobbyrenwick/patch-1
Fixing reference to undefined this triggering change on multiselect
2013-10-16 11:10:55 -07:00