-
Notifications
You must be signed in to change notification settings - Fork 8
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 loses cursor position on value change. #16
Comments
I am also having the same issue! |
@ac1dr3d @bcambel Unfortunately this is out of scope for soda-ash (which is an extremely thin translation from react to reagent) as the issue is upstream. This is a known issue with controlled inputs that reagent actually solves (reagent-project/reagent#79), but by using semantic ui react, the bug is reintroduced and you miss out on reagent's cute little hack. |
bye bye soda then... was fun to use it. |
@ac1dr3d If this is your main sticking point, an option that you could try is to use semantic ui classes on a |
@gadfly361 in that case I have to import more libraries and more files... aaand I don't want to do that. |
@ac1dr3d You wouldn't need to import anything new (no additional dependencies). You get the semantic ui classes from this:
which you already have to include when using soda-ash. However, I like Bulma and I wont dissuade you from using it. As an aside, I encourage you to be more respectful in your future communications with the open source community. |
Well you must be very non-humor personality so ok... no problem there mate. |
hello @gadfly361 thank you for this nice and convenient library! I spent quite some time trying to understand and indeed the workaround of using regular input fields instead of sa/FormInput solved it. |
@apostolou Thanks for reporting this issue! You are correct that a fix is out of scope for soda-ash. That said, I'd like to try to reproduce and maybe I can add an FAQs section with inputs and this particular edge case. Do you happen to have a code snippet to get me started in reproducing this? |
Hello @gadfly361 , Hope this helps and please let me know if you have some ideas for a workaround for the cursor issue. thanks
|
cursor jumps to the end when input is edited and its value is set from atom.
it does not keep its current place while typing...
The text was updated successfully, but these errors were encountered: