Skip to content

Commit

Permalink
patched @tiptap/react to fix errors when running dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
patosullivan committed Feb 26, 2024
1 parent 0cde172 commit 70c3e87
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/@tiptap+react+2.0.3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/@tiptap/react/dist/index.js b/node_modules/@tiptap/react/dist/index.js
index ca146b7..0b3b451 100644
--- a/node_modules/@tiptap/react/dist/index.js
+++ b/node_modules/@tiptap/react/dist/index.js
@@ -58,7 +58,7 @@ class PureEditorContent extends React.Component {
}
init() {
const { editor } = this.props;
- if (editor && editor.options.element) {
+ if (editor && !editor.isDestroyed && editor.options.element) {
if (editor.contentComponent) {
return;
}

0 comments on commit 70c3e87

Please sign in to comment.