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

删除updateKey后,引发的问题 #129

Closed
1 task done
hello-chinese opened this issue Oct 21, 2020 · 0 comments · Fixed by #134
Closed
1 task done

删除updateKey后,引发的问题 #129

hello-chinese opened this issue Oct 21, 2020 · 0 comments · Fixed by #134

Comments

@hello-chinese
Copy link

hello-chinese commented Oct 21, 2020

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

Reproduction link
https://codesandbox.io/s/tishichaoguozuidaxianshishuwufaguanbi-ant-design-demo-forked-l3mc5?file=/index.js

Steps to reproduce
点击三下button, 最后一个message,无法手动删除。

What is expected?
message超过上限后,新增的message应该也能删除。

What is actually happening?
code: src/Notification.tsx 107 line
notice.key = updatedNotices[0].notice.key;
导致new message key变成old message key,无法手动关闭

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 a pull request may close this issue.

1 participant