react-date-picker
react-date-picker copied to clipboard
Partially set date is reset on focus out and back in
Before you start - checklist
- [X] I followed instructions in documentation written for my React-Date-Picker version
- [X] I have checked if this bug is not already reported
Description
With partially filled date, after focusing out and then back in the input, date is being reset to it's previous value. Native date input doesn't do that.
Steps to reproduce
- Pick / type in date
- Delete day
- Click out of input
- Click back in
Expected behavior
Day remains deleted, placeholder is shown.
Actual behavior
Day is set back to what it was before deleting it.
Additional information
No response
Environment
- Browser (if applicable):
- React-Date-Picker version:
- React version:
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
This is kind of working as expected, but it's a common request to allow invalid/incomplete values to be retained. Acknowledged.