react-currency-input
react-currency-input copied to clipboard
How to right-align cursor on focus
I have an Input that is rendering with autoFocus=true. I would like the cursor to appear to the right of the value 0, but instead it appears at the left. This means that when a user inputs a 1, the value becomes 10 instead of 1. If the cursor could be positioned to the right of the initial 0, this could be avoided.
Any suggestions? Thank you.
Workaround is to set allowEmptry=true so that the user can make the first input. Would still be nice to have starting input of 0 and cursor to the right, though.