fix: datepicker event repeatedly called when showTime

pull/29/head
tangjinzhou 2018-05-30 17:44:20 +08:00
parent 119e987353
commit 81ab829b1d
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import * as moment from 'moment' import * as moment from 'moment'
import omit from 'lodash/omit'
import MonthCalendar from '../vc-calendar/src/MonthCalendar' import MonthCalendar from '../vc-calendar/src/MonthCalendar'
import VcDatePicker from '../vc-calendar/src/Picker' import VcDatePicker from '../vc-calendar/src/Picker'
import classNames from 'classnames' import classNames from 'classnames'
@ -186,7 +187,7 @@ export default function createPicker (TheCalendar, props) {
prefixCls: `${prefixCls}-picker-container`, prefixCls: `${prefixCls}-picker-container`,
}, },
on: { on: {
...$listeners, ...omit($listeners, 'change'),
...pickerProps.on, ...pickerProps.on,
}, },
style: props.popupStyle, style: props.popupStyle,