This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] Entry's MaskedBehavior causes the cursor to go to the end of an Entry when user's changing something in the middle of it #1879
Labels
bug
Something isn't working. Breaky break.
Description
Hi. Using MaskedBehavior on Entry causes caret to behave incorrectly both on Android and iOS. It goes to the end after changing something in the middle of Entry's input.
Mask with " "
Changing something in the middle of an Entry holding a Mask containing " " sign (for example, removing a character or typing one) always causes the cursor to go to the end of the current Entry's input.
Example: I have a Mask like: XXXX XXXX XXXX
_ _ _ _ - _ _ _ _ - _ _ _ _
I'm entering a few numbers, my cursor is at the end of the input:
0123 4567|
I'm placing the cursor to the position 1:
0|123 4567
I'm typing 9, it is recorded in the correct place, but the cursor goes to the end.
0912 3456 7|
It works the same when I'm removing a character in the middle of input.
Mask with "-"
If a Mask contains "-" sign, typing something in the middle of input is not possible at all, even if number of characters is lower than the number of all characters permitted by this Mask. Removing characters in the middle results in allowing for typing there. Sometimes cursor stays in correct position, sometimes not, I didn't investigate it further since I'm mostly interested in Masks with no "-" sign.
Reproduction Sample
Steps to Reproduce
Expected Behavior
Typing in the middle of an Entry always possible. Caret follows input position when changing something in the middle of an Entry.
Actual Behavior
For masks with "-" sign, it's sometimes not even possible to change something in the middle of an Entry (see gif attached). Caret always goes to the end of an Entry when changing something in the middle of the it.
Basic Information
Reproduction imagery
The text was updated successfully, but these errors were encountered: