react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

minDate < year CE 1000 does not work

Open stephent opened this issue 3 years ago • 3 comments

Describe the bug minDate property is not respected if earlier than the year 1000 when typing dates into the DatePicker input field.

To Reproduce

  1. Set minDate property on DatePicker to a value earlier than CE1000, e.g. Date(693, 0, 0, 0, 0, 0, 0)
  2. Try to input a date by typing a value before the start of year CE1000, e.g. April 19 750.
  3. DatePicker onChange handler does not fire.

Expected behavior If the DatePicker is configured with a minDate earlier than the year CE1000, it should allow the user to input a date greater than minDate, even if that is earlier than CE1000.

Additional context Full report of the apparent underlying issue (hardcoded minDate of 1/1/1000) is here: https://github.com/Hacker0x01/react-datepicker/issues/2834

When clicking through on the calendar, dates earlier than CE1000 can be selected.

Version react-datepicker 4.7.0

stephent avatar Mar 28 '22 22:03 stephent

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 02 '22 06:11 stale[bot]

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jun 19 '24 01:06 github-actions[bot]

It might be "stale", but that's doesn't mean it's resolved.

What is the point of 'stalebot'?

stephent avatar Jun 19 '24 04:06 stephent

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar May 07 '25 02:05 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar May 20 '25 02:05 github-actions[bot]