!37 [inual]<bugfix> 解决事件卸载失败问题

Merge pull request !37 from 涂旭辉/master
This commit is contained in:
涂旭辉 2023-10-12 08:19:07 +00:00 committed by Gitee
commit 04ff5d1ae2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ function findDOMNode(domOrEle?: Element): null | Element | Text {
// 情况根节点监听器
function removeRootEventLister(container: Container) {
const events = (container._treeRoot as any).$EV;
const events = (container as any).$EV;
if (events) {
Object.keys(events).forEach(event => {
const listener = events[event];