Skip to content

Commit

Permalink
fix: Don't init when editor is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi-bigpi committed May 8, 2023
1 parent 22cccc7 commit 1bce804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/EditorContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class PureEditorContent extends React.Component<EditorContentProps, Edito
init() {
const { editor } = this.props

if (editor && editor.options.element) {
if (editor && !editor.isDestroyed && editor.options.element) {
if (editor.contentComponent) {
return
}
Expand Down

0 comments on commit 1bce804

Please sign in to comment.