fix datepicker

pull/29/head
yiminghe 10 years ago
parent c42ca53d91
commit 37d9c7b46c

@ -31,7 +31,7 @@ export default React.createClass({
};
},
componentWillReceiveProps(nextProps) {
if ('value' in nextProps) {
if (nextProps.value) {
var value = new GregorianCalendar(zhCn);
value.setTime(new Date(nextProps.value).valueOf());
this.setState({

Loading…
Cancel
Save