Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to right-align cursor on focus #51

Open
tgoldenberg opened this issue Sep 25, 2017 · 1 comment
Open

How to right-align cursor on focus #51

tgoldenberg opened this issue Sep 25, 2017 · 1 comment

Comments

@tgoldenberg
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant