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

Datepicker value undefined does not update the displated value in the datepicker field #3414

Closed
krisolba1 opened this issue May 2, 2024 · 1 comment · Fixed by #3415
Closed
Assignees
Labels
🐛 bug Something isn't working

Comments

@krisolba1
Copy link

Describe the bug

The displayed value in DatePicker is not updated to the default "MM/DD/YYYY" when setting the value to undefined.

Steps to reproduce the bug

  1. Set value in DatePicker to undefined (null not supported as null is not Date | undefined)
  2. Observe that the value displayed does not get updated

Expected behavior

I expect that setting the date to undefined updates the displayed value to "MM/DD/YYYY", as is the initial state.

Specifications

  • Version: 0.37.0
  • Browser: firefox
  • OS:

Additional context

Add any other context or screenshots about the bug. An example in CodeSandbox is very helpful

@krisolba1 krisolba1 added the 🐛 bug Something isn't working label May 2, 2024
@yusijs yusijs self-assigned this May 2, 2024
@yusijs
Copy link
Contributor

yusijs commented May 3, 2024

Fix will be part of the next release of eds-core-react

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants