Skip to content

bug(Timepicker): Luxon provider does not display date if it exists #30140

Closed
@horesse

Description

@horesse

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

If there is an initial value in formControl, then when using provideLuxonDateAdapter(), the date will not be displayed when the page is loaded, but if we select the time, it will be displayed correctly.

Reproduction

StackBlitz link: https://stackblitz.com/edit/8xbgfc-eqfhl1?file=src%2Fexample%2Ftimepicker-forms-example.ts
Steps to reproduce:

  1. Open Page
  2. Check value in formControl
  3. Timepicker input is empty

Expected Behavior

Display time

Actual Behavior

Timepicker value is empty when component is initialized even if formControl has value

Environment

  • Angular: latest
  • CDK/Material: latest
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/timepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions