You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android] When you insert a special character in a TextBox with a Mask, the cursor goes to the left 1 position #2038
kind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformtriage/untriagedIndicates an issue requires triaging or verification
changed the title [-][Android] Flickering occurs when user enters a number in a TextBox with a Mask[/-][+][Android] When you add a special character in a TextBox with a Mask, the cursor goes to the left 1 position[/+]on Nov 7, 2019
changed the title [-][Android] When you add a special character in a TextBox with a Mask, the cursor goes to the left 1 position[/-][+][Android] When you insert a special character in a TextBox with a Mask, the cursor goes to the left 1 position[/+]on Nov 7, 2019
I've changed the InputScope from Number to TelephoneNumber and the issue of flickering has stopped.
There's now an issue with the cursor moving left but it's related to Umbrella.
This issue can remain closed. The root cause is that the FormattingTextBoxBehavior, which not part of Uno.UI, simply re-adjusts cursor position based on the delta in text length, regardless of the modification(s) occurred before or after the cursor position:
var selectionStart = textbox.SelectionStart;
if (textbox.Text.Length > formattedText.Length) // Non-considered special chars were removed.
{
selectionStart -= textbox.Text.Length - formattedText.Length;
}
else // String format chars were added.
{
selectionStart += GetAddedFormattingCharacterCount(textbox);
}
kind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformtriage/untriagedIndicates an issue requires triaging or verification
Activity
[-][Android] Flickering occurs when user enters a number in a TextBox with a Mask[/-][+][Android] When you add a special character in a TextBox with a Mask, the cursor goes to the left 1 position[/+][-][Android] When you add a special character in a TextBox with a Mask, the cursor goes to the left 1 position[/-][+][Android] When you insert a special character in a TextBox with a Mask, the cursor goes to the left 1 position[/+]jeromelaban commentedon Nov 8, 2019
Why was this issue closed ? Was it fixed ?
carlh98 commentedon Nov 8, 2019
I've changed the InputScope from Number to TelephoneNumber and the issue of flickering has stopped.
There's now an issue with the cursor moving left but it's related to Umbrella.
XiaotianNetlift commentedon Jan 7, 2020
This issue can remain closed. The root cause is that the
FormattingTextBoxBehavior, which not part of Uno.UI, simply re-adjusts cursor position based on the delta in text length, regardless of the modification(s) occurred before or after the cursor position:-- https://nventive.visualstudio.com/Umbrella/_workitems/edit/164249/
docs(algolia): apply /index.html + trailing-slash canonicalization (C…
docs(algolia): apply /index.html + trailing-slash canonicalization (C…