diff --git a/packages/tiptap/src/Plugins/FloatingMenu.js b/packages/tiptap/src/Plugins/FloatingMenu.js index e56e394a9..ed58a6205 100644 --- a/packages/tiptap/src/Plugins/FloatingMenu.js +++ b/packages/tiptap/src/Plugins/FloatingMenu.js @@ -20,7 +20,7 @@ class Menu { this.options.editor.on('focus', ({ view }) => { this.update(view) }) - this.options.editor.on('blur', event => { + this.options.editor.on('blur', ({ event }) => { this.hide(event) }) } diff --git a/packages/tiptap/src/Plugins/MenuBubble.js b/packages/tiptap/src/Plugins/MenuBubble.js index 9243a1756..40e04deb5 100644 --- a/packages/tiptap/src/Plugins/MenuBubble.js +++ b/packages/tiptap/src/Plugins/MenuBubble.js @@ -73,7 +73,7 @@ class Menu { this.options.editor.on('focus', ({ view }) => { this.update(view) }) - this.options.editor.on('blur', event => { + this.options.editor.on('blur', ({ event }) => { this.hide(event) }) }