ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

[bug report] after the El submenu is encapsulated into the component, the mouseenter event will be called recursively. The maximum call stack size exceeded #19606

Open xiaoxin9039 opened 4 years ago

xiaoxin9039 commented 4 years ago

Element UI version

2.13.2

OS/Browsers version

win10/Chrome

Vue version

2.6.11

Reproduction Link

https://codepen.io/xiaoxin9039/pen/BajogOG

Steps to reproduce

将el-submenu封装到组件的行为,都会在mouseenter事件中引起循环调用

What is Expected?

没有循环调用,没有Maximum call stack size exceeded错误

What is actually happening?

mouseenter事件中发生Maximum call stack size exceeded

element-bot commented 4 years ago

Translation of this issue:

Element UI version

0.1.0

OS/Browsers version

win10/Chrome

Vue version

2.6.11

Reproduction Link

https://codepen.io/xiaoxin9039/pen/BajogOG

Steps to reproduce

The behavior of encapsulating the El submenu to the component will cause a circular call in the mouseenter event

What is Expected?

No circular call, no maximum call stack size exceeded error

What is actually happening?

Maximum call stack size exceeded in mouseenter event

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.