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

message 中的 duration #23310

Closed
1 task
edsyang opened this issue Apr 16, 2020 · 2 comments
Closed
1 task

message 中的 duration #23310

edsyang opened this issue Apr 16, 2020 · 2 comments
Labels
🤔 Need Reproduce We cannot reproduce your problem

Comments

@edsyang
Copy link

edsyang commented Apr 16, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

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 不消失

Environment Info
antd 3.26.15
React 16.9
System windows 10
Browser Google Chrome 80.0.3987.163 (正式版本) (64 位)
@afc163 afc163 added the 🤔 Need Reproduce We cannot reproduce your problem label Apr 16, 2020
@ant-design-bot
Copy link
Contributor

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.

你好 @edsyang, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。

@ant-design-bot
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce We cannot reproduce your problem
Projects
None yet
Development

No branches or pull requests

3 participants