Menu:fix subMenu focus bug when switch browser tab (#13976)

* Menu:fix subMenu focus bug

* Menu:fix subMenu focus bug remove window.ActiveXObject
pull/14375/head
刘鹏龙 2019-02-15 13:49:55 +08:00 committed by Zhi Cun
parent 28873807c1
commit 1ec0821e42
1 changed files with 4 additions and 1 deletions

View File

@ -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') ||