Element UI version
0.1.0
OS/Browsers version
All
Vue version
3.0.0-beta.10
Reproduction Link
https://github.com/ElemeFE/element/blob/dev/packages/tooltip/src/main.js
Steps to reproduce
Traced a memory leak to this to the code:
https://github.com/ElemeFE/element/blob/dev/packages/tooltip/src/main.js
in the mounted there is a 'focus' event listener registered to lambda. In the destroyed we try to to clean it by referencing 'this.handleFocus' but that is not the function that is bound to the event.
What is Expected?
The component event listener should be cleaned up properly.
What is actually happening?
Event is not cleaned up and we leak memory.
3条答案
按热度按时间2nbm6dog1#
have same question
daupos2t2#
Not tooltip only...
0mkxixxg3#
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.