ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Select not working on Android 2.3

Open marcusanzalone opened this issue 12 years ago • 10 comments

Select on Android 2.3 is not working. I'm working from master.

There was a issue #1254 and that fixed most of the issue, but not Android 2.3. In reviewing that fix, I noticed there was a similar construct in scrollView.js.

scrollView.js - near line 675
    self.touchStart = function(e) {
      self.startCoordinates = getPointerCoordinates(e);

      if ( ionic.tap.ignoreScrollStart(e) ) {
        return;
      }

Select on Android 2.3 works if you change the one statement to:

if ( ionic.tap.ignoreScrollStart(e) || e.target.tagName === 'SELECT' ) {

I tested pre/post change on android 2.3, 4.4, iOS 6/7, and Safari/Chrome with no obvious bad side effects.

marcusanzalone avatar May 07 '14 17:05 marcusanzalone

That method will not allow the user to scroll when the target is a select element, so I instead change it a little bit so it can still be scrolled. Thanks for looking into this!

adamdbradley avatar May 08 '14 14:05 adamdbradley

Its not working for me, android 2.3.6

ghost avatar Jul 15 '14 22:07 ghost

Its not working for me, Android 2.3.6

fergusreiggracia avatar Jul 18 '14 12:07 fergusreiggracia

Same problem for me on Android 2.3.3, with the latest Ionic version (beta 11).

If I seed a "tabs" app, paste in the code from your docs, then deploy to my phone, tapping the select element doesn't do anything.

Nothing interesting in the log:

  • I/InputReader( 160): dispatchTouch::touch event's action is 1
  • I/InputDispatcher( 160): Delivering touch to current input target: action: 1, channel '408a69c8 com.ionicframework.selecttest680627/com.ionicframework.selecttest680627.SelectTest (server)'

The fixes suggested here and here have not helped.

I'm not sure if this falls under the umbrella of "scaled-down support for Android 2.3", but any help debugging would be appreciated.

dunksmith avatar Aug 15 '14 13:08 dunksmith

I can confirm this problem on 2.3.7 :panda_face:

trumbitta avatar Oct 19 '14 11:10 trumbitta

I have the same problem on 2.3.5

navneet77 avatar Nov 16 '14 04:11 navneet77

Is this issue have been resolved? I am facing the same, see the description on Stackoverflow at http://stackoverflow.com/questions/37077311/dropdown-text-issue-in-ionic-cordova-on-android-device

RupenAnjaria avatar May 09 '16 15:05 RupenAnjaria

Maybe try using Gap Debug there you can see the actual html DOM generated by the code it will help you find the problem

On Tue, May 10, 2016 at 1:44 AM, RupenAnjaria [email protected] wrote:

Is this issue have been resolved? I am facing the same, see the description on Stackoverflow at

http://stackoverflow.com/questions/37077311/dropdown-text-issue-in-ionic-cordova-on-android-device

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/driftyco/ionic/issues/1298#issuecomment-217902545

Navneet Bhartia

navneet77 avatar May 09 '16 21:05 navneet77

Hi I don't think I got it to work and eventually set the minimum supported version to a higher version of android one. Try another android device with version 4 or above of android

On Tue, May 10, 2016 at 1:44 AM, RupenAnjaria [email protected] wrote:

Is this issue have been resolved? I am facing the same, see the description on Stackoverflow at

http://stackoverflow.com/questions/37077311/dropdown-text-issue-in-ionic-cordova-on-android-device

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/driftyco/ionic/issues/1298#issuecomment-217902545

Navneet Bhartia

navneet77 avatar May 09 '16 21:05 navneet77

Facing the same on Android 5.0

RupenAnjaria avatar Jun 23 '16 18:06 RupenAnjaria