From 6e72de99b4ac3e53933e7059d264d1e9e28b4de5 Mon Sep 17 00:00:00 2001 From: huyueb <1062887235@qq.com> Date: Thu, 28 Sep 2017 10:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=A0=E5=8F=82value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/render/DateRender.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/DateRender.js b/src/render/DateRender.js index 53c9461..3669590 100644 --- a/src/render/DateRender.js +++ b/src/render/DateRender.js @@ -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 });