You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @edsyang. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 7 days.
This issue is closed because it has been marked as Need Reproduce, but has not had recent activity.
If you can provide a reproduce, feel free to ping anyone of our maintainers to reopen this issue.
Thank you for your contributions.
Reproduction link
http://www.内网地址无法贴链接.com
Steps to reproduce
请问一下我在使用 antd 中 "antd": "^3.21.4" 版本的 message 组件,绑定了一个 button,在点击时触发 message,设置了 duration(单独设置/设置 global 都试过),但是我如果 ctrl s 时移动鼠标,或者在 button 中点击之后不移动鼠标,会导致设置的 duration 失效,message 长时间不消失,这个问题应该怎么去解决
function sendSaveRequest() {
// debugger;
return request({
method: 'post',
headers: { 'content-type': 'application/x-www-form-urlencoded' },
url: '',
data: qs.stringify(paramsData)
}).then((res: any) => {
if (res.success) {
window.parent.postMessage({
origin: '',
type: 'editor-action',
subtype: 'save-data',
content: paramsData.yamlModel
}, '*');
message.success('保存成功', 1.5);
} else {
message.error(
保存失败: ${res.errorMsg}
, 1.5);}
return res;
}).catch(err => console.error(err))
}
What is expected?
message 的 duration 正常被调用,message 组件正常消失
What is actually happening?
鼠标移动后 message 不消失
The text was updated successfully, but these errors were encountered: