react-datepicker
react-datepicker copied to clipboard
Event object is not passed to onChange handler (when time selector is enabled)
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)}
/>
This would be really helpful.
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.