gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.

Home Page:https://daypicker.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support `required` prop for date range selection

gpbl opened this issue · comments

Discussed in #1736

Originally posted by homerchen19 March 27, 2023
The required prop is currently only supported for single date selection. I am wondering if it would be possible to extend this support to date range selection as well. This would ensure that users are unable to unselect the range start date. One example of this functionality can be found in MUI's DateRangePicker. Once a start date is selected, regardless of any further interactions with the calendar, the range start date always remains selected.