TextInput sets mobile phone number format input - How to solve the issue of cursor position disorder after modifying dat
Read the original article:TextInput sets mobile phone number format input - How to solve the issue of cursor position disorder after modifying data? Problem Description Using HarmonyOS TextInput to enter phone numbers formatted as 3-4-4 via onChange() leads to two issues in practice: Spaces can be deleted. On delete/insert, the cursor jumps to the end. Current Effect For the number 123 4567 8910, the space between 7 and 8 was removed. The TextInput space was first deleted, followed by a refresh
Comment
Sign in to join the discussion.
Loading comments…