mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
refactoring
This commit is contained in:
parent
68ff32a024
commit
483fe11434
@ -91,7 +91,10 @@ class Menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hide(event) {
|
hide(event) {
|
||||||
if (event && event.relatedTarget) {
|
if (event
|
||||||
|
&& event.relatedTarget
|
||||||
|
&& this.options.element.parentNode.contains(event.relatedTarget)
|
||||||
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,8 +146,10 @@ class Menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hide(event) {
|
hide(event) {
|
||||||
if (event && event.relatedTarget
|
if (event
|
||||||
&& this.options.element.parentNode.contains(event.relatedTarget)) {
|
&& event.relatedTarget
|
||||||
|
&& this.options.element.parentNode.contains(event.relatedTarget)
|
||||||
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user