reecelucas / react-datepicker

An accessible, internationalizable React datepicker
MIT License
12 stars 6 forks source link

Unable to select date in the past #1

Closed thisoldbear closed 4 years ago

thisoldbear commented 4 years ago

Hey @reecelucas. Looking at dateIsSelectable() in helpers/date.js, am I right in assuming you can't select a day that is in the past?

Combinations of initialDate, minDate and maxDate don't seem to allow it either.

reecelucas commented 4 years ago

Hi @thisoldbear,

This should be fixed in v2.0.0, thanks to @Malven. Past dates are now selectable by default. The minDate prop can be used to override this behaviour. Hope this helps!

Apologies for the delay in getting back to you on this, I've been swamped at work for much of the summer. Catching up with everything now!