diff --git a/packages/tiptap/src/Plugins/MenuBubble.js b/packages/tiptap/src/Plugins/MenuBubble.js index 1e2f9e707..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) { + if (event && event.relatedTarget + && this.options.element.parentNode.contains(event.relatedTarget)) { return }