update count render, ref #983

This commit is contained in:
afc163 2016-02-02 18:23:00 +08:00
parent e044041305
commit 6f20df5d5b

View File

@ -37,6 +37,9 @@ class AntScrollNumber extends React.Component {
componentWillReceiveProps(nextProps) {
if ('count' in nextProps) {
if (this.state.count === nextProps.count) {
return;
}
this.lastCount = this.state.count;
//
this.setState({