-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Bug]: can't access ref
on EditorContent
in react
#4470
Comments
I wish this to be fixed. |
Actually this one appears to be because it uses a ref internally already. To fix this refs need to be merged here: tiptap/packages/react/src/EditorContent.tsx Lines 137 to 148 in 42039c0
|
I opened #4396 a while back to fix this. Can this be reviewed and merged? |
Also hoping to see #4396 implemented. |
I just merged #4396 and will probably release a new release candidate today so you could test this behavior the next days if you switch to the most recent RC version |
Resolved with #4396 |
Which packages did you experience the bug in?
react
What Tiptap version are you using?
2.1.11
What’s the bug you are facing?
<EditorContent editor={editor} ref={editorContentRef} />
I want to access
ref
onEditorContent
but it's not working.What browser are you using?
Chrome
Code example
<EditorContent editor={editor} ref={editorContentRef} />
What did you expect to happen?
I should be able to access
EditorContent
's internal state and other things viaref
.Anything to add? (optional)
fix is in #4471
instead of
we can do
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: