I have a text field that allows to edit. The textfield display number along with symbol. For example
There are 2 solutions that come into mind
When user starts editing, we remove the symbol. Wait for user to finish editing the textfield (keyboard is dismissed) then we check the number and append the symbol.
Check and append the symbol appropriately while user is editing (keyboard is still showing). This sounds more naturally but requires more handling. With
21 lbs, when user starts editing, the cursor is right after the word
lbs, and user wants to change from
2. How to handle in this case
What might be the most appropriate solution?