Closed jjuutila closed 11 years ago
Is there a case of using disabled dates with ranges. The support was originally made for single date selections.
Yes there is. We want to prevent the user from selecting some dates for a range of days. Maybe the easiest way to implement this would be to cancel the range selection when user selects a range that contains a disabled day.
Sounds good. I will accept that kind of pull request :)
Fixed.
Setting the disabledDates parameter does not prevent selecting a range over disabled days. For example in the playground.html there are disabledDates "12/1/2012 12/2/2012 12/3/2012" and when selecting a range from 12/1 to 12/5 the range will be 12/1-12/5 (includes some disabled dates). Maybe the whole range selection should be cancelled if the range contains a disabled day.