wojtekmaj / react-date-picker

A date picker for your React app.

Home Page:https://projects.wojtekmaj.pl/react-date-picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Partially set date is reset on focus out and back in

agnieszka-puzio opened this issue · comments

Before you start - checklist

  • I followed instructions in documentation written for my React-Date-Picker version
  • 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: