Skip to content

[DatePicker] Input value is cleared when closing the datepicker #4478

@igor-serzhan

Description

@igor-serzhan

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

Input value is cleared after open and close the datepicker dialog.

Expected behavior 🤔

Input value should stay the same

Steps to reproduce 🕹

Steps:

  1. Open https://codesandbox.io/s/k860y9?file=/demo.js (official demo)
  2. Type valid date in input (for example 03/03/2022)
  3. Blur the input
  4. Open Datepicker Dialog (click at the calendar icon)
  5. Close Datepicker Dialog (just click outside the dialog or press 'Esc' button)
  6. See that input value is empty

Context 🔦

https://codesandbox.io/s/k860y9?file=/demo.js

Your environment 🌎

environment from the official sandbox

Metadata

Metadata

Labels

scope: pickersChanges related to the date/time pickers.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions