Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Android 5.0.2: Can't enter text into form inputs in popup #8163

Closed
dpolivy opened this issue Jun 27, 2015 · 7 comments
Closed

Android 5.0.2: Can't enter text into form inputs in popup #8163

dpolivy opened this issue Jun 27, 2015 · 7 comments
Assignees

Comments

@dpolivy
Copy link

dpolivy commented Jun 27, 2015

On Android 5.0.2, it is nearly impossible to use the Android virtual keyboard to input text into form fields contained within a popup. It seems to be an issue related to the popup positioning code -- when the keyboard is shown, the popup tries to reposition around it, and that somehow kills focus on the input field, which then causes the keyboard to disappear.

Repro Steps

  1. Go to the Popup demo page: http://demos.jquerymobile.com/1.4.5/popup/
  2. Scroll down to the Form demo.
  3. Tap the Sign in button. Notice the popup appears.
  4. Tap into the username field.
  5. Type a character.

Actual: The keyboard appears, the popup flies offscreen, repositions itself a few times, and the keyboard disappears.
Expected: The page should just scroll up to accommodate the keyboard, and focus should stay in the input fields so text can be entered.

This happens even with the latest WebView (v43.0.2357.121), but it doesn't happen on Android 5.1.1 (or prior 4.x versions). On 5.1.1, I don't see the popup attempt to reposition itself when the keyboard is shown.

Any ideas of fixes or workarounds?

@apsdehal
Copy link
Contributor

apsdehal commented Jun 5, 2016

Works fine with latest jqm. Closing as not able to reproduce.
bs_realdroid_mobile_samsung galaxy s6-5 0-1440x2560

@apsdehal apsdehal closed this as completed Jun 5, 2016
@dpolivy
Copy link
Author

dpolivy commented Jul 1, 2016

Please re-open this, it still repros. I just confirmed the problem with the latest demos using a device with 5.0.2. I was missing a step in the repros -- after tapping in the field, type a character. You will then see it reproduce.

Here's a video from a Galaxy S6 Edge running Android 5.0.2.

07-01-2016 16h23m44s

@arschmitz
Copy link
Contributor

@dpolivy thank you

@arschmitz arschmitz reopened this Jul 2, 2016
@apsdehal
Copy link
Contributor

apsdehal commented Jul 7, 2016

@dpolivy Can you try this on http://view.jquerymobile.com/master/demos/popup/ because I just used Galaxy S6 on browserstack to open this url and wasn't able to reproduce the issue. The above link is the latest jqm.

@dpolivy
Copy link
Author

dpolivy commented Jul 7, 2016

@apsdehal I just tried it on the same device as above, and it does appear to be working properly with the link you provided. Previously, when it reproed, I was using the latest public demo link which I believe went to 1.4.5.

So, if this is fixed in the latest release, what's the ETA for availability? Or is there a fix that can be backported to the 1.4.x branch?

@apsdehal
Copy link
Contributor

apsdehal commented Jul 7, 2016

Yes, it will be available in couple of weeks, but docs aren't ready yet and demos are not updated according to latest api. You can always build the source yourself. Closing the issue for now.

@apsdehal apsdehal closed this as completed Jul 7, 2016
@arschmitz
Copy link
Contributor

@dpolivy the alpha release is dont execpt for a few things like writing the changelog and blog post it should only be a week or 2

@apsdehal apsdehal self-assigned this Aug 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants