This is a migrated thread and some comments may be shown as answers.

Odd behavior on android when enter email address in input box

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kenneth
Top achievements
Rank 2
Iron
Kenneth asked on 28 Oct 2016, 01:37 AM

Cordova hybrid app, android s6 active model samsung sm G890A, android ver 6.0.1

I have a simple login screen with username and password input boxes. The username is an email address.

When the user types the @ symbol, the next character typed is lost and the first character of the email address is added to the beginning,

for example:

If the user types "myemail@" then they type any letter the text will change to "mmyemail@" and starting from the second character the remainder of the word will be be underlined (like a hyperlink).

Subsequent characters typed are appended to the end of email address as expected.

I have no handlers to modify the input box on key press or lost focus, it is just a simple form with two inputs and a submit button.

It works fine on an android S3 and an apple iphone and an ipad mini.

Since an underline appears under the second character to the end of the word it appears to me that the android system is trying to hyperlink the field because it recognizes it as an email address with the appearance of the @ sign.

This behavior makes it impossible to enter the username correctly, you have to cursor over to delete the first character then insert the missing character after the @.  It's crazy. 

I don't know if this is a cordova issue (on version 6 of android) but does anyone have any ideas on how to fix this?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 01 Nov 2016, 01:53 PM
Hello Kenneth,

Is it possible that this is the device auto-correct trying to change the word? Have you tried setting the input type to email, so it doesn't get auto-corrected? At least, this is how the input behaves on my side on a Huawei P9 Lite running Android 6.0.

Regards,
Tsvetina
Telerik by Progress
 
Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
 
Tags
General Discussions
Asked by
Kenneth
Top achievements
Rank 2
Iron
Answers by
Tsvetina
Telerik team
Share this question
or