mirror of https://github.com/ElemeFE/element
Menu:fix subMenu focus bug when switch browser tab (#13976)
* Menu:fix subMenu focus bug * Menu:fix subMenu focus bug remove window.ActiveXObjectpull/14375/head
parent
28873807c1
commit
1ec0821e42
|
@ -178,7 +178,10 @@
|
|||
}
|
||||
this.dispatch('ElMenu', 'submenu-click', this);
|
||||
},
|
||||
handleMouseenter() {
|
||||
handleMouseenter(event) {
|
||||
if (!('ActiveXObject' in window) && event.type === 'focus' && !event.relatedTarget) {
|
||||
return;
|
||||
}
|
||||
const { rootMenu, disabled } = this;
|
||||
if (
|
||||
(rootMenu.menuTrigger === 'click' && rootMenu.mode === 'horizontal') ||
|
||||
|
|
Loading…
Reference in New Issue