select2 icon indicating copy to clipboard operation
select2 copied to clipboard

Opens and immediately closes on Android and Windows Phone

Open PSimonMotech opened this issue 12 years ago • 16 comments

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?

PSimonMotech avatar Aug 12 '14 16:08 PSimonMotech

P.S. the select2 is applied to an asp:dropdownlist element with autopostback=true, if that helps at all

PSimonMotech avatar Aug 12 '14 18:08 PSimonMotech

I have the same problem, is there a work around or a fix for it ?

xp65 avatar Aug 31 '14 23:08 xp65

Same problem, would love a fix.

paulcredmond avatar Sep 11 '14 09:09 paulcredmond

Have the same issue. It only happens when the dropdown is outsider of the viewport and it has to grow upwards

danjessen avatar Sep 24 '14 14:09 danjessen

Same issue here for android, even a dropdown without the search textbox will close itself immediately after it has been opened. (3.5.1)

claeyst avatar Oct 04 '14 18:10 claeyst

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. :(

xavadu avatar Dec 16 '14 13:12 xavadu

Can someone confirm if this happens in the upcoming version of Select2?

https://kevinbrown.in/select2/examples.html

kevin-brown avatar Dec 16 '14 14:12 kevin-brown

@kevin-brown it doesn't happens for FF 34.0 and Native Android browser

xavadu avatar Dec 16 '14 14:12 xavadu

is the code of the upcoming version here?

xavadu avatar Dec 16 '14 15:12 xavadu

The pull request for the next major release of Select2 is at https://github.com/ivaynberg/select2/pull/2743.

kevin-brown avatar Dec 16 '14 15:12 kevin-brown

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).

beermad avatar Jan 23 '15 19:01 beermad

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.

kevin-brown avatar Jan 23 '15 20:01 kevin-brown

I am experiencing same issue here.. Any one has any fix or workarounds for this issue?

vnyvs avatar Feb 04 '15 08:02 vnyvs

@vnyvs What version of Select2 and what OS are you having issues with?

kevin-brown avatar Feb 04 '15 15:02 kevin-brown

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.

vnyvs avatar Mar 02 '15 08:03 vnyvs

Should be fixed in 4.0.0.

kevin-brown avatar Mar 18 '15 16:03 kevin-brown