-
Notifications
You must be signed in to change notification settings - Fork 46
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
controlled input caret jumps to end when input is modified #36
Comments
This is all probably wrong, there are many related issues in the React repo in various states and this issue can probably be repro'ed in various Flux architectures where state is not backed by react |
This is a known issue with most virtual-dom things. I actually feature detect for this in my virtual dom implementation ( https://github.com/Raynos/virtual-hyperscript/blob/master/index.js#L55-L62 ). I specifically ensure that setting of the |
Sorry for the long turnaround time on this. There is now a fix for it in master, though you'll have to use one of the new uncontrolled inputs See the documentation at https://github.com/levand/quiescent/blob/master/docs.md#cursor-jumping-and-controlled-inputs |
Here is a demo repo with reduced test case.
The final commit in this repo fixes the bug via the react-async-input monkey patch described here.
Uncomment the monkey patch on line 13 of index.html to see the broken behavior.
The text was updated successfully, but these errors were encountered: