react-date-picker icon indicating copy to clipboard operation
react-date-picker copied to clipboard

Partially set date is reset on focus out and back in

Open agnieszka-puzio opened this issue 1 year ago • 2 comments

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

  1. Pick / type in date
  2. Delete day
  3. Click out of input
  4. 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:

agnieszka-puzio avatar Apr 04 '23 20:04 agnieszka-puzio

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.

github-actions[bot] avatar Jul 10 '23 00:07 github-actions[bot]

This is kind of working as expected, but it's a common request to allow invalid/incomplete values to be retained. Acknowledged.

wojtekmaj avatar Jul 16 '23 15:07 wojtekmaj