mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
fix(menu-bubble-hide): only send hide update, target not child of editor
This commit is contained in:
parent
01493e825b
commit
527a7443f1
@ -143,7 +143,7 @@ class Menu {
|
||||
}
|
||||
|
||||
hide(event) {
|
||||
if (event && event.relatedTarget) {
|
||||
if (event && event.relatedTarget && this.options.element.parentNode.contains(event.relatedTarget)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user