Skip to content

Commit

Permalink
fix: compatibility with next-international
Browse files Browse the repository at this point in the history
Fixes #128
  • Loading branch information
petyosi committed Oct 17, 2023
1 parent 9201e02 commit 5de52ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MDXEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const EditorRootElement: React.FC<{ children: React.ReactNode; className?: strin
editorRootElementRef.current = popupContainer
setEditorRootElementRef(editorRootElementRef)
return () => {
document.body.removeChild(popupContainer)
popupContainer.remove()
}
}, [className, editorRootElementRef, setEditorRootElementRef])
return <div className={classNames(styles.editorRoot, styles.editorWrapper, className, 'mdxeditor')}>{children}</div>
Expand Down

0 comments on commit 5de52ad

Please sign in to comment.