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

Pointing cursor to the end every-time onFocus is called. #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kishankhakhar
Copy link

#122 Solved the open issue.
Everytime the onFocus function is called, the cursor would point to the end in-order to avoid editing of the current countryflag and code if the user starts typing immediately.

@kishankhakhar
Copy link
Author

kishankhakhar commented Jun 12, 2017

For instance, supposedly if a user is typing a phone number in a login form and in between he goes to a previous field and then comes back to the number field, the complete number typed by him previously gets selected and if he starts typing, the previous value gets overwritten.
To avoid this small issue, i have moved the cursor to the end of the current value everytime the onFocus method is called.

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

Successfully merging this pull request may close these issues.

1 participant