From 81ab829b1d0f67ee926b106de788fc5b41ec4f9c Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 30 May 2018 17:44:20 +0800 Subject: [PATCH] fix: datepicker event repeatedly called when showTime --- components/date-picker/createPicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/date-picker/createPicker.js b/components/date-picker/createPicker.js index 0335d63f9..98c7fa265 100644 --- a/components/date-picker/createPicker.js +++ b/components/date-picker/createPicker.js @@ -1,5 +1,6 @@ import * as moment from 'moment' +import omit from 'lodash/omit' import MonthCalendar from '../vc-calendar/src/MonthCalendar' import VcDatePicker from '../vc-calendar/src/Picker' import classNames from 'classnames' @@ -186,7 +187,7 @@ export default function createPicker (TheCalendar, props) { prefixCls: `${prefixCls}-picker-container`, }, on: { - ...$listeners, + ...omit($listeners, 'change'), ...pickerProps.on, }, style: props.popupStyle,