Skip to content

[Bug]: Specifying defaultValue doesn't modify the timePicker #25730

Description

@madhurauti

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
    Memory: 6.06 GB / 31.60 GB
  Browsers:
    Edge: Spartan (44.22621.819.0), Chromium (107.0.1418.42)
    Internet Explorer: 11.0.22621.1

Are you reporting Accessibility issue?

no

Reproduction

https://codepen.io/pen/?template=jOVZXaW

Bug Description

Browser: Chrome

image
The 6:00 AM Timepicker is incorrect. Based on the timepicker logic it should be set to 12:30 since the default value is set to 00:18 (see screenshot)

Actual Behavior

Specifying defaultValue for the timepicker doesn't set the value correctly.

Expected Behavior

Specifying defaultValue should reflect the value correctly in the timepicker.

Logs

NA

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions