Skip to content

Commit

Permalink
fix: datepicker event repeatedly called when showTime
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed May 30, 2018
1 parent 119e987 commit 81ab829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/date-picker/createPicker.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -186,7 +187,7 @@ export default function createPicker (TheCalendar, props) {
prefixCls: `${prefixCls}-picker-container`,
},
on: {
...$listeners,
...omit($listeners, 'change'),
...pickerProps.on,
},
style: props.popupStyle,
Expand Down

0 comments on commit 81ab829

Please sign in to comment.