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

fix: 切换页面报错 (fix #306) #307

Merged
merged 1 commit into from
Sep 7, 2024
Merged

fix: 切换页面报错 (fix #306) #307

merged 1 commit into from
Sep 7, 2024

Conversation

richex-cn
Copy link
Contributor

函数执行时 container 存在,但 setTimeout 回调执行时 container 可能已被销毁,这导致快速点击时(300ms以内)报错。

以及可能导致注册无效的事件:

document.addEventListener('click', clickClose)

@baiy baiy merged commit e498d31 into baiy:master Sep 7, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants