-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backspace does not work when deleting beyond a separator character on Android Chrome #418
Comments
Ok I got ya, ... you want support for android browsers ;-) I made a new jsfiddle http://jsfiddle.net/Tpr6N/14/ Can you enter some chars and delete them, and send the output to me. On my tablet with Android 4.2.1 Chrome Browser I got input keydown keyup as events. The input is changed on the input event. Can you test it also on Chrome and on the stock browser. Thx Robin |
When entering 1 2 3 4 and then deleting them:
This is on Chrome on Nexus 5, which only has Chrome as the default browser. Thanks again for all your help with this. |
Hi Andrew, Can you send also the useragent, thx. Very strange, ... chrome on my tablet never fires the keypress and also the 2014-01-25 Andrew Rota [email protected]
|
Yes, this is the same useragent as the one I reported eariler: Mozilla/5.0 (Linux; Android 4.4.2; Nexus 5 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Mobile Safari/537.36 |
And here are some other results on another device (Galaxy SII) for that JSFiddle: Device: Samsung Galaxy SII SAMSUNG-SGH-I777
Device: Samsung Galaxy SII SAMSUNG-SGH-I777
|
And another (Galaxy S4): Device: Samsung Galaxy S4 SCH-I545
(above results may also be relevant for #421) Device: Samsung Galaxy S4 SCH-I545
(above results may also be relevant for #416) |
Thx for the info. Now we have some more inside of which events occur and in which sequence. I made a new fiddle to test with http://jsfiddle.net/Tpr6N/15/. In this fiddle we test the ability to block an event. |
http://jsfiddle.net/UJvN7/ (to test on Nexus 5 (chrome 32) |
On the last jsfiddle the input gets added before the mask, pushing the mask forward as you type. (Nexus 5, Chrome). |
For http://jsfiddle.net/Tpr6N/15/ on the nexus 5 Chrome:
|
Can you retest the fiddle on the nexus5. The event binding was wrong. |
http://jsfiddle.net/UJvN7/, retested on Nexus 5 Chrome: Characters input fine but when you start deleting them you also delete the separator character (the dash) and the masking does not re-appear as you delete. Then when you leave (lose focus on) the field and click back into the field the characters re-appear as if they were never deleted. |
It is not easy to implement without having the device ;-) Can you send the output of http://jsfiddle.net/Tpr6N/20/ |
Nexus 5 Chrome:
|
Thx! I know I ask much. Can you retest with http://jsfiddle.net/UJvN7/ |
I get an alert when deleting past the separator:
|
And thank you again for all your help with these issues. I know it's a pain to debug without the actual devices. |
Great you got the alert. Can you have another test, ... this should work now. |
It does work! The one behavior that is strange/unexpected though is that when you have the cursor at the character past the dash, and then hit delete, the first thing it does is delete the dash rather than deleting the number before the dash. Deleting further works as expected though. |
Can you explain the strange/unexpected a bit more. Maybe with some examples. |
|
Also, I've been testing with the second field on that fiddle. With the first field there is one problem: the first time in the input field when you add any character past the separator you can't delete (pressing delete does nothing and doesn't move the cursor). But if you lose focus on the field and then go back into the field, it works fine. I'm not able to reproduce this behavior on the second field in the jsfiddle. |
Can you have another test |
Same behavior. |
did you got an alert? |
Just tried again; received alerts this time:
(I believe this is the expected state at this point) |
That looks good, ... the last test. without alerts |
I tried it again. No alerts this time and the behavior is back to before the alerts were there:
|
There was an error, ... can you try again (the last test for now, ...) |
Seems to work! The bug I mentioned above (#418 (comment)) is still there, but that may be unrelated. It only happens when I input letters rather than numbers. |
The link to the comment doesn't show exactly, ... which bug exactly? |
So when you input letters (not numbers) into the field it doesn't allow you to delete (the cursor doesn't move when you press delete). However, when you leave the field and go back into it, it works fine. EDIT: I tested this in the current plugin as is and it's present there so this is a distinct bug that I'll log elsewhere. |
Ha enable developers setting on jellybean is by tapping 7 times on the build version in the about menu |
I first want to solve the If you want you may already test http://jsfiddle.net/Tpr6N/15/ |
Sure. On http://jsfiddle.net/Tpr6N/15/: Pressing a b c 1 2 3 and then pressing delete until the input is clear yields this result on a Nexus 5 Chrome:
|
No no not on the Nexus 5, I need it for a device with android chrome 2014-01-28 Andrew Rota [email protected]
|
Ah ok I'll test those next. |
On http://jsfiddle.net/Tpr6N/15/ with a Nexus S4, Chrome browser: Press 1, press 2, press 3. Press delete. Press delete again (interestingly it deleted two characters when I pressed delete the second time. Result:
|
On http://jsfiddle.net/Tpr6N/15/ with a Nexus S2, Chrome browser: Press 1, press 2, press 3. Press delete. Press delete again. Press delete again. No characters were inputted at all during this test. The input field remained empty. Result:
|
incredible!! the events triggered depends on the inputkind??! All should work besides the caret who get stuck sometimes. |
Hi andrew, |
(re http://jsfiddle.net/UJvN7/) So for the S2 (Chrome 18) the backspace issue is fixed, but there are two other strange behaviors:
|
It has also something todo with the autocorrection in android I think. There is a simular behavior on Chrome32 for the second issue. To be continued .... |
See #416 |
Demo: http://jsfiddle.net/Tpr6N/2/
JS Code:
Steps to reproduce:
Device: Nexus 5
OS: Android 4.4.2
Browser: Chrome
User Agent String: Mozilla/5.0 (Linux; Android 4.4.2; Nexus 5 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Mobile Safari/537.36
The text was updated successfully, but these errors were encountered: