P3Package: datetimeType: bughelp wanted
描述
Environment
- Package version(s): "@blueprintjs/datetime@3.20.5"
- Operating System: Windows 10 Pro 18363.1379
- Browser name and version: Chrome 88.0.4324.190 (Official Build) (64-bit)
- Component: DateInput
Code Sandbox
Please check the example by sandbox link
Preliminary steps which are performed in the example:
- set
formatDateandparseDateattributes usingmoment(momentreturns expected result) - set
minDateasnew Date("0001-01-01T00:00:00.000Z")
scenario 1:
Steps to reproduce
- enter "0001-01-01" in the date input
- check date picker
Actual behavior
The date picker displays "1901" in the year select field and the day is not highlighted
Expected behavior
The date picker displays "1" in the year select field or "0001" and the picked day highlighted

scenario 2:
Steps to reproduce
- click on the input
- pick any two digits year or one digit year from the date picker, for example, "12"
Actual behavior
The input field displays "1912-01-01" and the date picker displays "1912" in the year select field
Expected behavior
The input field displays "0012-01-01" and the date picker displays "12" in the year select field or "0012"
