Cursor jumps to end of input fields
See original GitHub issueThis bug was first reported here: https://community.frontity.org/t/cursor-jumping-on-controlled-input/789
Bug report
- I’ve searched for existing issues
- I’ve checked documentation: https://docs.frontity.org
- I’ve checked community forum: https://community.frontity.org
Describe the expected behavior
While tipying in an <input>
component, the cursor must remain in place.
Describe the observed behavior
The cursor jumps to the end every time the value changes.
Describe the steps involved to reproduce the problem
Just add an <input>
to your theme and test it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (14 by maintainers)
Top Results From Across the Web
Input cursor jumps to end of input field on input event
The cursor jumps to end of the input value when user types in the middle. the last typed character (not the last character)...
Read more >Text cursor jumps to the end of the text in the input field
1. Manually restart the app by right-clicking the icon in your taskbar (Windows) and selecting Quit. After you quit, click the app icon...
Read more >Cursor jumps to end of input when inputValue is a controlled ...
Problem description: Visit this codesandbox; type text; move cursor to the left; type a letter; the letter will be added at the correct...
Read more >Cursor jumps to end of field - Apple Community
Cursor jumps to end of field · Touch and hold the Space bar with one finger until the keyboard turns light gray. ·...
Read more >The Curious Case of Cursor Jumping - Mutually Human
Cursor jumping is simply when the cursor jumps from one location to another, unexpectedly, while the user is typing into a text field....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! I am the author of react-easy-state and I got an email about this issue. Just wanted to let you know that next release (with the cursor jumping fix) is coming early next week.
Yeah, that problem comes from the monkey patching of the native events done by react-easy-state to batch events under React’s
unsafe_batchedUpdates
: https://github.com/solkimicreb/react-easy-state/issues/92I already offered my help to solve it in the original library and even found a solution that we could use in our own fork: https://codesandbox.io/s/react-easy-state-batch-bug-async-scheduler-6q2dt
I was waiting to hear from @solkimicreb first, to understand why he monkey patched instead of using async queues, but it seems like he is still missing.
If this is urgent we can implement my solution. Why did you opened this issue in the first place? Did some user reported the problem?