Skip to content
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

Passing a new className prop will move the caret position to the end of the element #193

Open
nicolasmendonca opened this issue Mar 30, 2020 · 2 comments

Comments

@nicolasmendonca
Copy link

nicolasmendonca commented Mar 30, 2020

Current behavior

When the html prop is not updated, but the className prop is, then the caret position will move to the end of the element.

Desired behavior

Changing a className should leave the caret position as it is.

@ajhenry
Copy link

ajhenry commented Apr 19, 2020

I was able to fix this by removing the following line (not too sure of the consequences of this but its working fine for me)

@nicolasmendonca
Copy link
Author

I forked the repo and did the same thing! But I wasn't sure of the consequences either...

Thanks for helping out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants