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