* Menu:fix subMenu focus bug * Menu:fix subMenu focus bug remove window.ActiveXObject
@@ -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') ||