Menu: fixed submenu hidden bug after adding popper-append-to-body (#15391)

pull/16185/head
花裤衩 2019-06-10 17:16:36 +08:00 committed by island205
parent 811add71cf
commit 69715b6154
1 changed files with 3 additions and 0 deletions

View File

@ -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);
},