-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Android: Browser and WebView crash when only one input is present on page #4103
Comments
Okay, seems that I got the (most obvious) solution: |
No, this hasn't been reported as far as I know. Really odd. Here is your code in a jsbin, can you confirm that this is causing the issue? If you add a label and associate it via the for attribute, does that change anything? If jQM is removed, does the problem go away? |
First of all thanks for your reply. Also, the problem exists, when I add some input fields (more the one) on a hidden DIV-Element, showing it later and calling textinput() on all input-Elements. When I add this tiny 1 x 1px input anywhere, it works. I took a little video, just to show you what happens: http://www.bit-storm.de/jqm/android.mp4 (7MB) |
Just another note. It works on jsbin, because of the file edit.js, which creates an a-tag in the body-tag. |
@wexstorm - that is so bizarre. Can you get the crashing to happen without jQM? Just trying to figure out if this is just an Android quirk. Your test page looks clean and correct, but I do see this at the bottom - does removing this change anything?
|
Hi Todd, this script is added by jsbin. When I remove it, the app crashes again. When I download this "edit.js" file from jsbin and comment the line out, where the "edit"-Button is added via JavaScript to the DOM the app crashes again. |
I am running into the same (or similar) issue. To add some extra WTF to the fire, it only crashes when I enter the number "7" into the text input. And, just as strange, it does not allow me to enter the number "9". It doesn't crash, it just doesn't show the "9". I tried scrapping all the js and CSS from jQM and re-build the form from the ground up and copy the jQM CSS to try and make the form look at least halfway decent. I added all the CSS with the borders, margins, fonts, gradients, rounded corners, etc. After I tested it, it still would crash on the number 7. I started stripping away CSS. After commenting out the "overflow-x: hidden" attribute on the element, it started working.
I don't know if this helps any, but I thought I'd share. I'll have to revisit this in the future when I'm on less of a deadline. If I have any success, I'll post back here. |
I am going to close this ticket as duplicate, in favor of #3208 which is older. |
While developing a PhoneGap-App for Android, I discovered this very serious bug.
When just one textinput is present on a page, Android crashes without a warning. (Doesn't matter if in WebView via Phonegap or native Browser).
Also, if several inputs are present (some disabled, some readonly) and an a hidden div which is displayed afterwards, this issue can be reproduced.
Tested on:
These "fixes" didn't work:
Any suggestions please?
Here is my sample-code:
The text was updated successfully, but these errors were encountered: