mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
refactor(menu-bubble-hide): break conditional to multiple lines
This commit is contained in:
parent
527a7443f1
commit
cfa506e89e
@ -143,7 +143,8 @@ class Menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hide(event) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user