React-dates: Select single date on dateRangePicker

Created on 21 Sep 2018  路  4Comments  路  Source: airbnb/react-dates

Hi, is there a way for selecting a single day in dateRangePicker component? I see on Airbnb website that it is possible by clicking two times on the same day.

airbnb_-_2018-09-21_15 37 49

Thanks.
Giacomo

question

Most helpful comment

Hi @giacomo-m, you can pass in minimumNights={0}. It's set to 1 by default but is customizable.

All 4 comments

Thanks for your reply @stjanis, but i need both daterange and singledate functions at the same time.
Is that possible?

Hi @giacomo-m, you can pass in minimumNights={0}. It's set to 1 by default but is customizable.

Thanks @majapw. It works fine!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prztrz picture prztrz  路  3Comments

Jesus-Gonzalez picture Jesus-Gonzalez  路  3Comments

augnustin picture augnustin  路  3Comments

ekohanyi picture ekohanyi  路  3Comments

maciej-w picture maciej-w  路  3Comments