calcite-react
calcite-react copied to clipboard
Search: cursor gets moved to end of entered text in search textbox after each new character
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 |
|---|---|
![]() |
![]() |
Your Environment
Chrome on Windows

