fix: datepicker event repeatedly called when showTime
parent
119e987353
commit
81ab829b1d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue