gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
5.88k stars 702 forks source link

Datepicker Allows Selection of Ranges with Disabled Days in Between #2035

Closed leonardoparisii closed 5 months ago

leonardoparisii commented 5 months ago

Issue Description:

During the date range selection, it's currently possible to select ranges that include disabled days in between. This behavior is not intended and needs to be addressed to ensure a more accurate and user-friendly date selection experience.

Expected Behavior:

The datepicker should restrict users from selecting date ranges that include disabled dates in between. Users should only be able to select continuous date ranges without any disabled days interrupting the selection.

gpbl commented 5 months ago

This is a duplicate of https://github.com/gpbl/react-day-picker/issues/1885, check the page to see a workaround. We will fix this in the next major version.