SingleDatePicker: startDate and endDate passed to onClose when clicking outside #1674
Labels
bug
Oh no, something's broken :-(
pull request wanted
This is a great way to contribute! Help us out :-D
react-dates@20.2.0
While implementing the
SingleDatePicker
I found out thatonDayClick
passes{ date: Moment }
andonOutsideClick
passes{ startDate: undefined, endDate: undefined }
toonClose
. See: https://github.com/airbnb/react-dates/blob/11de2016bf6e7111ddebd5a7f7fc1fe929a3600c/src/components/SingleDatePicker.jsx#L206Should the latter even be the case for
SingleDatePicker
, since there's only one date?The text was updated successfully, but these errors were encountered: