From 619ceffd7e072af51d6651598852fa58a221c8a9 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 24 Jun 2016 14:43:46 +0800 Subject: [PATCH] fix createPicker.tsx --- components/date-picker/createPicker.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/date-picker/createPicker.tsx b/components/date-picker/createPicker.tsx index b4ca61c7e3..e04dbafd85 100644 --- a/components/date-picker/createPicker.tsx +++ b/components/date-picker/createPicker.tsx @@ -24,17 +24,17 @@ export default function createPicker(TheCalendar) { } }, - clearSelection = (e) => { + clearSelection(e) { e.preventDefault(); e.stopPropagation(); this.setState({ value: null }); this.handleChange(null); }, - handleChange = (value) => { + handleChange(value) { const props = this.props; if (!('value' in props)) { - this.setState({value}); + this.setState({ value }); } const timeValue = value ? new Date(value.getTime()) : null; props.onChange(timeValue, value ? props.getFormatter().format(value) : '');