Merge pull request #589 from janiskelemen/patch-2

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

View File

@ -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