mirror of https://github.com/ElemeFE/element
Menu: fixed submenu hidden bug after adding popper-append-to-body (#15391)
parent
811add71cf
commit
69715b6154
|
@ -208,6 +208,9 @@
|
||||||
this.dispatch('ElSubmenu', 'mouse-leave-child');
|
this.dispatch('ElSubmenu', 'mouse-leave-child');
|
||||||
clearTimeout(this.timeout);
|
clearTimeout(this.timeout);
|
||||||
this.timeout = setTimeout(() => {
|
this.timeout = setTimeout(() => {
|
||||||
|
if (this.appendToBody) {
|
||||||
|
this.rootMenu.openedMenus = [];
|
||||||
|
}
|
||||||
!this.mouseInChild && this.rootMenu.closeMenu(this.index);
|
!this.mouseInChild && this.rootMenu.closeMenu(this.index);
|
||||||
}, this.hideTimeout);
|
}, this.hideTimeout);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue