longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Can I choose date after a date is disabled ? #524

Closed sudipdeveloper closed 3 weeks ago

sudipdeveloper commented 11 months ago

Suppose I have a month in which weekends are disabled and i want to select the whole month as a date range how can i do this ?

monovertex commented 3 weeks ago

Unfortunately I don't think this is currently possible with how the rangepicker is built. You'd need a list of selected ranges, because disabled days are not compatible with being present in the resulting range. This feels like a huge change to the underlying implementation, so I'll close it for the moment.

My suggestion for a workaround would be to allow users to select weekend days, and then validate the selected range with external logic.