react-component / react-component/picker
enter date manually in format YY prevent the user to add YYYY
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 304
- Forks
- 345
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 7
Description
When the datepicker supports both DD-MM-YYYY and DD-MM-YY or MMDDYY and MMDDYYYY as formats, the user is unable to type YYYY properly.
Step to reproduce:
from the date picker example
- enter date manually character by character "01-12-2024"
What is expected?
The user should have time to enter the date properly, and the date picker should show the date 01/12/2024
What is actually happening?
As soon as the user starts entering the years, after the second character, the datepicker shows 01/12/2020
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with the linked CodeSandbox reproduction and the date picker example, then trace the manual date-entry path in the picker. Reproduce typing "01-12-2024" with both YYYY and YY formats; done means the full four-digit year can be entered without being committed after two characters and the picker shows 01/12/2024.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100