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

Badge重置count无效 #983

Closed
liuchaofeng1230 opened this issue Feb 2, 2016 · 4 comments
Closed

Badge重置count无效 #983

liuchaofeng1230 opened this issue Feb 2, 2016 · 4 comments
Assignees

Comments

@liuchaofeng1230
Copy link

Badge修改count后无效

发生环境

  • antd 版本:0.11.2
  • 操作系统及版本:mac
  • 浏览器及版本:chrome48

BUG代码:
(截图上传不了。。。)
https://github.com/ant-design/ant-design/blob/master/components/badge/ScrollNumber.jsx 40行

return始终被触发,建议改为 this.state.count === nextProps.count

@afc163
Copy link
Member

afc163 commented Feb 2, 2016

http://ant.design/components/badge/#demo-change

这个例子是有效的,是否有重现代码?

@afc163
Copy link
Member

afc163 commented Feb 2, 2016

我这里重现了。

@afc163 afc163 self-assigned this Feb 2, 2016
@afc163 afc163 closed this as completed in e044041 Feb 2, 2016
@afc163
Copy link
Member

afc163 commented Feb 2, 2016

感谢反馈。

afc163 added a commit that referenced this issue Feb 2, 2016
@lock
Copy link

lock bot commented May 6, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants