Merge pull request #478 from chrisjbrown/fix/menu-bubble-hide

fix(menu-bubble-hide): only send hide update, target not child of editor
This commit is contained in:
Philipp Kühn 2019-10-03 11:46:26 +02:00 committed by GitHub
commit c3ab421aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,8 @@ class Menu {
}
hide(event) {
if (event && event.relatedTarget) {
if (event && event.relatedTarget
&& this.options.element.parentNode.contains(event.relatedTarget)) {
return
}