React-dates: Allow selecting same date in DateRangePickerWrapper

Created on 21 Dec 2017  路  2Comments  路  Source: airbnb/react-dates

I have an inline calendar where the date range can span a single day.

Is it possible to allow the end date to be selected as the same day as the start date with the Calendar view of DateRangePickerWrapper? In Storybook, nothing happens when selecting the same day. I can do it programmatically via a preset, but that makes for bad UX.

question

Most helpful comment

Yup! Just pass in minimumNights={0}.

All 2 comments

Yup! Just pass in minimumNights={0}.

That works! Thanks!

Was this page helpful?
0 / 5 - 0 ratings