mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 11:09:01 +08:00
Merge pull request #478 from chrisjbrown/fix/menu-bubble-hide
fix(menu-bubble-hide): only send hide update, target not child of editor
This commit is contained in:
commit
c3ab421aaa
@ -143,7 +143,8 @@ 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