mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-06 02:17:49 +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) {
|
hide(event) {
|
||||||
if (event && event.relatedTarget) {
|
if (event && event.relatedTarget && this.options.element.parentNode.contains(event.relatedTarget)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user