Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

浏览器丢失响应,报错 Uncaught Error: It is illegal to free an event not managed by this EventBoundary! #5670

Closed
Lionad-Morotar opened this issue Oct 22, 2023 · 4 comments
Assignees

Comments

@Lionad-Morotar
Copy link

Lionad-Morotar commented Oct 22, 2023

我在 G2 外部用 Vue 再封装了一层组件,但是调试时发现有报错,页面会直接丢失响应。暂不清楚出现原因。


如果使用 pointer-events: none 屏蔽掉 canvas 的鼠标交互,就能正常运行。

@pearmini
Copy link
Member

提供一个有 vue 封装的 codesandbox 链接?

@xiaoiver xiaoiver self-assigned this Oct 23, 2023
@Lionad-Morotar
Copy link
Author

晚上我试试尝试一下能不能用在线链接复现一下

@Lionad-Morotar
Copy link
Author

Lionad-Morotar commented Oct 24, 2023

提供一个有 vue 封装的 codesandbox 链接?

参考这个 issue 得到了临时解决方法,#5379

我原先的代码:

const chart = ref<InstanceType<typeof Chart>>()

修改后的代码:

let chart: InstanceType<typeof Chart> | null = null

简而言之,去掉 ref 就啥事儿都没有

@Lionad-Morotar Lionad-Morotar changed the title 浏览器卡死,报错 Uncaught Error: It is illegal to free an event not managed by this EventBoundary! 浏览器丢失响应,报错 Uncaught Error: It is illegal to free an event not managed by this EventBoundary! Jan 19, 2024
@Lionad-Morotar
Copy link
Author

Lionad-Morotar commented Jan 19, 2024

现在我仍然能复现这个问题。但是不理解是为什么...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants