Skip to content

Partially set date is reset on focus out and back in #587

Description

@agnieszka-puzio

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions