We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ueberdosis
Learn more about funding links in repositories.
Report abuse
1 parent 22cb038 commit 2104f0fCopy full SHA for 2104f0f
.changeset/sixty-gifts-dream.md
@@ -0,0 +1,5 @@
1
+---
2
+"@tiptap/core": patch
3
4
+
5
+Add a check beforecreateNodeViews so that view.setProps is not called when the view has already been destroyed
packages/core/src/Editor.ts
@@ -349,6 +349,10 @@ export class Editor extends EventEmitter<EditorEvents> {
349
* Creates all node views.
350
*/
351
public createNodeViews(): void {
352
+ if (this.view.isDestroyed) {
353
+ return
354
+ }
355
356
this.view.setProps({
357
nodeViews: this.extensionManager.nodeViews,
358
})
0 commit comments