Skip to content

[ui5-datetime-picker]: restore wrong value #11376

@nnaydenow

Description

@nnaydenow

Bug Description

If the ui5-datetime-picker has a selected value—for example, 13/04/2020, 03:16:16 AM—and an invalid value is then entered followed by selecting a new value from the picker, the time is not set correctly.

It is set to 12:00:00 AM

Affected Component

ui5-datetime-picker

Expected Behaviour

When a value is selected from the picker, the time should default to the previously used time—unless explicitly changed via the time picker. In this case, it should retain 03:16:16 AM as the time.

At least, that's what the test expects and how it behaves in OpenUI5.

Isolated Example

https://sap.github.io/ui5-webcomponents/nightly/packages/main/test/pages/DateTimePicker.html

Steps to Reproduce

  1. In the second ui5-datetime-picker select all text and write invalidvalue
  2. Press tab
  3. Open picker of the second ui5-datetime-picker
  4. Select any date
  5. Observe that the time is set to 12:00:00 AM

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

nightly

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions