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
Editor loses focus when updating state #134
Comments
What system and browser you are using? |
@sylingd Chrome/Firefox and the latest MacOS :-) |
@olaven I'm struggling with a similar issue, but not with this package. If you figured it out, I would love some feedback/pointers! 😃 |
Hi, @erlendoeien! Sorry for the late response. |
If anyone bumbs with this issue, I was able to fix it by NOT using useState. I am currently declaring a variable outside the render function, and just updating that function. I am using Next.js as reference. |
@masaez hey masaez, could you share a code snippet of how you were able to solve this issue? |
Hi! We are looking into using this package for an application and it looks promising! Thanks!
This may be due to an understanding, but we are having some issues.
Given the example below, these are the observations:
In other words, the correct approach seems to be to just pass
value
and never handle the state.This is totally fine 👍 Great even, but not obvious (to me, at least).
However, loosing focus is still weird, as appears to be kept in the component.
Is this behaviour intended?
The text was updated successfully, but these errors were encountered: