Skip to content

Commit

Permalink
Menu: fixed submenu hidden bug after adding popper-append-to-body (El…
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen authored and lzq4047 committed May 22, 2020
1 parent ae1e376 commit 0c60d39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/menu/src/submenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@
this.dispatch('ElSubmenu', 'mouse-leave-child');
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
if (this.appendToBody) {
this.rootMenu.openedMenus = [];
}
!this.mouseInChild && this.rootMenu.closeMenu(this.index);
}, this.hideTimeout);
},
Expand Down

0 comments on commit 0c60d39

Please sign in to comment.