Merge pull request #588 from janiskelemen/patch-1

Fix error in hide event
This commit is contained in:
Philipp Kühn 2020-02-02 21:12:11 +01:00 committed by GitHub
commit cfc9b38af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,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