-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Feedback] Xamarin Forms 3.2 Android entry cursor jumps back and forth #3923
Comments
AndroidCursorFail.zip |
|
Made a fix on the 3.6 branch. |
@kvpt The fix only fixes cursor jump behavior, while the problem of duplicate call on |
@lukazh The issue here is for the cursor jump and what cause this is a focus problem. So if you have this issue and have reproduction example, I invite you to open a dedicated issue. From previous debug session, if I remember, I have encountered this case of double call. |
repro.zip If you make a breakpoint in When one of the two calls on |
@lukazh Thanks for the reproduction, I will test that. |
@lukazh Your problem is caused by the navigation during the MainPage appearing. You have two solutions :
I will check the other reproduction to see if the same patch fix also the issue here. |
Hi I have the same problem in Xamarin Forms 4.3. I need to type two times the same character. For instance, if I want 1234, I need to do 11223344. Same for backspace, need to do 2x backspace. How did you solve the problem? |
Hi @snice1981, |
Hi @kvpt Here is my reproduction: Here is the OnAppearing in SettingsPage.xaml.cs: The Settings page is pretty easy and just contains 3-4 Labels + 3-4 Entry Here is an example of Entry that cause the issue: This code was working since months until I upgraded from Xamarin Forms v3.0 to latest (v4.3) |
Description
Xamarin.Forms 3.2 appears to introduce and error, in some cases, where when typing into an entry field, the cursor continually jumps from the beginning to the end of input and back continuously. Thus when attempting to enter "123456789", it comes out as "975312468". It occurs when typing directly and using on-screen keyboard. I've repeated the problem using an emulator and debugging on a device. It seems to only occur on Android.
In my case, the issue only happens when I am brought to my initial login screen on startup. If I reset the cursor after each character and login successfully, I no longer have a problem, even if I log off and back on during the session. If I start a new session and currently have valid login information cached and bypass the sign in page, I also do not have a problem. I've only seen this problem on my sign on page.
Reverting back to Xamarin.Forms 3.1 fixes the problem.
Visual Studio 15.8.5
Xamarin 4.11.0.776 (d15-8@1ae9b59d7)
Xamarin Designer 4.15.9 (d000f568b)
Xamarin Templates 1.1.116 (9619170)
Xamarin.Android SDK 9.0.0.19 (HEAD/a8a3b0ec7)
Xamarin.iOS and Xamarin.Mac SDK 12.0.0.15 (84552a4)
Xamarin.Forms 3.2.0.839982
View on Developer Community
To find diagnostic information, see the original linked feedback ticket.
Source
692432
The text was updated successfully, but these errors were encountered: