Opens and immediately closes on Android and Windows Phone
I have the 3.5.1 version. When viewing a page on an android or windows phone device (including the examples on the select2 github page).
Selecting a select2 dropdown causes this to happen: dropdown opens, virtual keyboard opens, dropdown closes, virtual keyboard closes
you cannot select anything from the dropdown in the short time it is opened.
I have combed through all the other positngs about this problem, none of the workarounds have worked.
Any ideas?
P.S. the select2 is applied to an asp:dropdownlist element with autopostback=true, if that helps at all
I have the same problem, is there a work around or a fix for it ?
Same problem, would love a fix.
Have the same issue. It only happens when the dropdown is outsider of the viewport and it has to grow upwards
Same issue here for android, even a dropdown without the search textbox will close itself immediately after it has been opened. (3.5.1)
Experiencing same behavior with Firefox for Android (latest version: 34.0), You can check it in the official example page
Somebody more? Its component is losing support for mobile devices. :(
Can someone confirm if this happens in the upcoming version of Select2?
https://kevinbrown.in/select2/examples.html
@kevin-brown it doesn't happens for FF 34.0 and Native Android browser
is the code of the upcoming version here?
The pull request for the next major release of Select2 is at https://github.com/ivaynberg/select2/pull/2743.
The new example page seems to work right for me (chrome, Firefox Android and Naked Browser) but curiously, even when using the next release version mentioned the site I'm working on still has the problem (my suspicion is that it may be something to do with the fact that I'm having to play around with z-index all over the place to fit the various layers of my pages.
One thing I've observed is that the problem seems to occur on occasions when the page resizes itself as the select is clicked on. With this in mind, I tried replacing
<meta name="viewport" content="width=device-width, initial-scale=1.0"> with <meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0"> First indications are that this is a good workaround (though I haven't done intensive testing yet).
In the latest unstable version (on the select2-ng branch), we should have fixed the resizing and scrolling issues that were previously seen on mobile devices.
I am experiencing same issue here.. Any one has any fix or workarounds for this issue?
@vnyvs What version of Select2 and what OS are you having issues with?
I am using 3.5.2 version of select2. The issue is seen in android JB. I have same device of version Kitkat on which it works fine.
Should be fixed in 4.0.0.