We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95859f commit 7493c4eCopy full SHA for 7493c4e
packages/core/src/editor/BlockNoteEditor.ts
@@ -1107,6 +1107,13 @@ export class BlockNoteEditor<
1107
this.prosemirrorView.focus();
1108
}
1109
1110
+ public blur() {
1111
+ if (this.headless) {
1112
+ return;
1113
+ }
1114
+ this.prosemirrorView.dom.blur();
1115
1116
+
1117
public onUploadStart(callback: (blockId?: string) => void) {
1118
this.onUploadStartCallbacks.push(callback);
1119
packages/core/src/extensions/SideMenu/SideMenuPlugin.ts
@@ -738,6 +738,8 @@ export class SideMenuProsemirrorPlugin<
738
if (this.view) {
739
this.view.isDragOrigin = false;
740
741
742
+ this.editor.blur();
743
};
744
/**
745
* Freezes the side menu. When frozen, the side menu will stay
0 commit comments