Skip to content

[DatePicker]: Value disappear on blur with dddd, D MMMM YYYY format #2560

@MadinaNishanbaeva

Description

@MadinaNishanbaeva

Prerequisites (optional)

Selected value disappear on blur

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Description (optional)

DatePicker lose value on blur
format: dddd, D MMMM YYYY
value: Thursday, 17 October 2024

Steps to Reproduce

    <DatePicker
      filter={(day: Dayjs) => {
        const today = new Date();

        return day.isAfter(today.setDate(today.getDate() - 1));
      }}
      mode="inline"
      disableClear={false}
      iconPosition="left"
      format={"dddd, D MMMM YYYY"}
      placeholder={t("form.placeholders.date")}
      {...lens.prop("date").toProps()}
    />
  1. Choose date
  2. Focus on input field, do not change date
  3. Lose focus

Actual result

On blur value disappears

Expected result

On blur value is in the field

Environment

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • UUI version: 5.9.0-beta.0
  • Browser name: chrome
  • Operating System: Windows

discussed with @siarhei-epam

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions