Skip to content

Commit c93b468

Browse files
committed
fix tests
1 parent 3e13fa9 commit c93b468

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/editor/BlockNoteEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ export class BlockNoteEditor<
681681
*/
682682
public mount = (element: HTMLElement) => {
683683
const root = element.getRootNode();
684-
if (root instanceof ShadowRoot) {
684+
if (typeof ShadowRoot !== "undefined" && root instanceof ShadowRoot) {
685685
root.appendChild(this.portalElement);
686686
} else {
687687
document.body.appendChild(this.portalElement);

0 commit comments

Comments
 (0)