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

Tooltip 被 remove 后关闭出错 #375

Open
peasoft opened this issue Jan 28, 2025 · 0 comments
Open

Tooltip 被 remove 后关闭出错 #375

peasoft opened this issue Jan 28, 2025 · 0 comments

Comments

@peasoft
Copy link

peasoft commented Jan 28, 2025

代码:

tooltip.remove();
// 然后 Tooltip 试图关闭

错误:

Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'hidden')

此行代码 中的 !. 在生成 Release 时被压掉了,因为理论上 this.popupRef.value 不能为空,但是在 Tooltip 被 remove 掉时就能使 this.popupRef.value 空。

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

1 participant