修改传参value

This commit is contained in:
huyueb 2017-09-28 10:31:58 +08:00
parent 06e0091561
commit 6e72de99b4
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export default class DateRender extends Component {
const value = e.format(format);
this.setState({ value });
if (this.props.onChange) {
this.props.onChange(this.state.value);
this.props.onChange(value);
}
setTimeout(() => {
this.setState({ editable: false });