diff --git a/packages/tiptap/src/Plugins/MenuBubble.js b/packages/tiptap/src/Plugins/MenuBubble.js index 60245b863..e2e1fd438 100644 --- a/packages/tiptap/src/Plugins/MenuBubble.js +++ b/packages/tiptap/src/Plugins/MenuBubble.js @@ -143,7 +143,8 @@ class Menu { } hide(event) { - if (event && event.relatedTarget && this.options.element.parentNode.contains(event.relatedTarget)) { + if (event && event.relatedTarget + && this.options.element.parentNode.contains(event.relatedTarget)) { return }