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

Search: cursor gets moved to end of entered text in search textbox after each new character #380

Open
michaelgaigg opened this issue May 23, 2020 · 0 comments

Comments

@michaelgaigg
Copy link
Contributor

michaelgaigg commented May 23, 2020

Expected Behavior

Typing a search string will never jump to the end of the string

Current Behavior

Type a search string, position the cursor anywhere in the existing search string, continue typing, after each keystroke the cursor will jump to the end of the search string

Possible Solution

this happens most likely because the value is controlled and the user action updates state so that current value is out of sync with state and therefore control updates; not sure how to fix though

Steps to Reproduce (for bugs)

Click in the search textbox and enter the text "hill".
Use the left key to move the cursor in the textbox to the beginning of the entered text, before the "h".
Enter text "amy "

Context + Screenshots

Current behavior Expected behavior
incorrect expected

Your Environment

Chrome on Windows

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