Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
agnieszka-puzio opened this issue Apr 4, 2023 · 2 comments
Open
2 tasks done

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

agnieszka-puzio opened this issue Apr 4, 2023 · 2 comments
Labels
enhancement New feature or request fresh

Comments

@agnieszka-puzio
Copy link

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:
@agnieszka-puzio agnieszka-puzio added the bug Something isn't working label Apr 4, 2023
@github-actions
Copy link
Contributor

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 github-actions bot added the stale label Jul 10, 2023
@wojtekmaj wojtekmaj added fresh and removed stale labels Jul 13, 2023
@wojtekmaj
Copy link
Owner

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

@wojtekmaj wojtekmaj added enhancement New feature or request and removed bug Something isn't working labels Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fresh
Projects
None yet
Development

No branches or pull requests

2 participants