Commit 69715b61 authored by 花裤衩's avatar 花裤衩 Committed by island205

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

parent 811add71
...@@ -208,6 +208,9 @@ ...@@ -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);
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment