arqex / react-datetime

A lightweight but complete datetime picker react component.
1.99k stars 872 forks source link

Make allowed earliest day selectable in DaysView #822

Closed mark-night closed 1 year ago

mark-night commented 2 years ago

If isValidDate is provided to set a range of allowed dates, the earliest day of the range was not selectable in DaysView because it was set to the start of the day. User would have to implement certain logic in isValidDate to make it selectable. This change would make the earliest day selectable by default.

Description

Motivation and Context

Checklist

[x] I have not included any built dist files (us maintainers do that prior to a new release)
[ ] I have added tests covering my changes
[ ] All new and existing tests pass
[ ] My changes required the documentation to be updated
  [ ] I have updated the documentation accordingly
  [ ] I have updated the TypeScript 1.8 type definitions accordingly
  [ ] I have updated the TypeScript 2.0+ type definitions accordingly