mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
Merge pull request #589 from janiskelemen/patch-2
Fix error on hide event
This commit is contained in:
commit
fb147d45f3
@ -155,6 +155,7 @@ class Menu {
|
|||||||
hide(event) {
|
hide(event) {
|
||||||
if (event
|
if (event
|
||||||
&& event.relatedTarget
|
&& event.relatedTarget
|
||||||
|
&& this.options.element.parentNode
|
||||||
&& this.options.element.parentNode.contains(event.relatedTarget)
|
&& this.options.element.parentNode.contains(event.relatedTarget)
|
||||||
) {
|
) {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user