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
message updating with key ,但是不能手动移除了 #19950
Comments
ref: #18678 @wendzhue |
您好,我看过这个issues,我希望的是通过callback去移除message,不需要更新操作 |
能不能给个异步移除的例子呢 @yoyo837 |
@yoyo837 好的,我会处理这个 |
@czbczb 再提供个旧版本时功能正常的在线demo。 |
@yoyo837 |
Reason: ant-design/components/message/index.tsx Lines 69 to 83 in bed1f77
In L69 it should be const target = args.key || key++ |
@yoyo837 这个问题可以交给我来处理吗?😀 |
thank u @yoyo837 |
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
Steps to reproduce
let loadingKey = 'loading'
let hideLoading = message.loading({content: '正在加载数据...', key: loadingKey, duration: 0})
hideLoading() // not work
What is expected?
不需要自动移除,我需要调用hideloading方法手动移除message
What is actually happening?
duration:0
此时无法移除,
duration不为0时,antd设置默认3秒后会移除
The text was updated successfully, but these errors were encountered: