-
Notifications
You must be signed in to change notification settings - Fork 103
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
lost focus when using onChange #164
Comments
Try to memoize options (put them in class field) and onChange handler (same). Other than that, please, create a reproduction on codesandbox. |
But, it was working with version 4.1.3. i switched back to it to double check and have a working version. Is this a breaking change ? Should i switch to hooks to make this module work now ? I created a codesandox as you requested. i have same error, although i tried using hooks. can you help me pointing the issue ? or is it really a bug. |
aaah, i finally understood what you mean by memoizing. |
@rafipiccolo glad you fixed it. |
i use nextjs, and i intalled the latest version : react-simplemde-editor 5.0.1
i lose focus when i type and i had registered onChange.
issue #150 speaks about the same problem but i use class, not hooks.
sample code can be this :
The text was updated successfully, but these errors were encountered: