src/TimeView.js | ●●●●● patch | view | raw | blame | history |
src/TimeView.js
@@ -123,6 +123,7 @@ ['hours', 'minutes', 'seconds', 'milliseconds'].forEach(function(type) { assign(me.timeConstraints[type], me.props.timeConstraints[type]); }); this.setState( this.calculateState( this.props ) ); }, componentWillReceiveProps: function( nextProps ){ this.setState( this.calculateState( nextProps ) );