We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think after the update() function of a react nodeview (
tiptap/packages/react/src/ReactNodeViewRenderer.tsx
Line 107 in 0475356
The issue I'm running into is a little hard to reproduce, but it comes down to this:
ContentDOM
In my own project I hotfixed this with the following code:
export function CustomReactNodeViewRenderer(component: any, options?: any) { return (props: any) => { const renderer = ReactNodeViewRenderer(component, options)(props) as any; const oldUpdate = renderer.update; if (oldUpdate) { renderer.update = function () { let ret = oldUpdate.apply(this, arguments); this.contentDOM; // trigger fix return ret; }; } return renderer; }; }
The text was updated successfully, but these errors were encountered:
fix: maybe move content dom on update, see #1370
60708a7
Hey, hard to fix without a reproducing demo. I released a new version with the attached fix. Does that help?
Sorry, something went wrong.
Thanks! This doesn't fix it, but moving maybeMoveContentDom down does, i.e.:
maybeMoveContentDom
this.node = node this.decorations = decorations this.renderer.updateProps({ node, decorations }) this.maybeMoveContentDOM()
78f75c3
fix: maybe move content dom on update, see ueberdosis#1370
3a329d7
fix: maybe move content dom on update, fix ueberdosis#1370
4ac968e
No branches or pull requests
I think after the update() function of a react nodeview (
tiptap/packages/react/src/ReactNodeViewRenderer.tsx
Line 107 in 0475356
The issue I'm running into is a little hard to reproduce, but it comes down to this:
ContentDOM
is still a child of the h1.In my own project I hotfixed this with the following code:
The text was updated successfully, but these errors were encountered: