react-currency-input icon indicating copy to clipboard operation
react-currency-input copied to clipboard

How to right-align cursor on focus

Open tgoldenberg opened this issue 7 years ago • 1 comments

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.

tgoldenberg avatar Sep 25 '17 16:09 tgoldenberg

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.

tgoldenberg avatar Sep 25 '17 21:09 tgoldenberg