-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Unexpected behavior of onBlur/onFocus callbacks for FunctionComponent with Hooks #2798
Comments
similar issue: lovasoa/react-contenteditable#161 [edit]: attached a similar issue |
I had the same issue and was resorted to using ref object pointed to editor state.
Demo of the incorrect behavior: Demo of fix using ref object: |
I believe that this may be fixed by #3093, which has changed a lot of the logic in Slate and |
Do you want to request a feature or report a bug?
What's the current behavior?
please refer to the code attached in later section
What's the expected behavior?
Code
Info
initialValue
The text was updated successfully, but these errors were encountered: