react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

Event object is not passed to onChange handler (when time selector is enabled)

Open stormherz opened this issue 8 years ago • 2 comments

Expected behavior

Event object as a second argument in onChange handler

Actual behavior

Event object is not passed to onChange handler when time selector is enabled

Steps to reprodcue

<DatePicker
    minDate={moment('2015-01-01')}
    maxDate={moment().add(1, 'day')}
    showMonthDropdown
    showYearDropdown
    showTimeSelect
    timeFormat='HH:mm'
    timeIntervals={15}
    dropdownMode='select'
    customInput={<DatePickerInput />} // very simple button, irrelevant, I guess
    onChange={(value, e) => console.log(value, e)}
/>

stormherz avatar Feb 09 '18 21:02 stormherz

This would be really helpful.

stefansandulescu avatar Apr 04 '18 12:04 stefansandulescu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 30 '19 16:08 stale[bot]