-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
The notification component clicks the close icon and calls the onClose function repeatedly #6144
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
Comments
因为 Notificaiton,设置了自动关闭,有个定时器。你应该在这里面设置 notification.open({
.....
duration: 0,
}); |
这是自动关闭的时间,但是如果我手动点击了关闭图标。按理说定时器应该不会触发。
|
|
今天,看了下源码。发现就是,他给这个添加了 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
3.2.14
Environment
node 16.15.1 macOS Ventura13.0 vue3.2.31
Reproduction link
Steps to reproduce
1、点击notification box
2、点击关闭图标观察控制台 等待几秒后再次观察控制台
What is expected?
点击关闭图标调用close函数 不点击则定时器触发close函数
What is actually happening?
重复调用close函数
The text was updated successfully, but these errors were encountered: