-
-
Notifications
You must be signed in to change notification settings - Fork 717
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
Textarea loses caret position on render #55
Comments
Try using |
Fantastic! So simple. Works perfectly. Thank you. |
Reagent's :default-value instead of :value is another option that could work in your case. With that the input field wouldn't need to be updated. |
See also: #39 (comment) |
Yes I saw the other thread just after I opened the issue - should have looked more carefully! Thanks for your help all. Really appreciate it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I have a problem with a databound textarea. If I edit text in the middle of the string the cursor will immediately leap to the end. Note that this does not happen if I just use a regular reagent atom to manage the state so I am assuming that it is something that re-frame is doing.
For example the following does not exhibit the problem:
But this code does:
In this case the
:test
subscription and handler are just roundtriping a simple value to the re-frame state.Is there something I am doing wrong here? Is this expected behaviour? It's really causing me a problem because I'm having to resort to all sorts of horrible hacks to get round it (and still not really satisfactory). If I could get the second example to work like the first it would be great.
Hope you can help because everything else about re-frame seems fantastic.
Thanks.
The text was updated successfully, but these errors were encountered: