Skip to content

[Bug]: TimePicker - clear button doesn't work when freeform and clearable are enabled #31123

@khoait

Description

@khoait

Library

React Components / v9 (@fluentui/react-components)

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh

Are you reporting Accessibility issue?

None

Reproduction

https://stackblitz.com/edit/m5haoq?file=src%2Fexample.tsx

Bug Description

Actual Behavior

When freeform and clearable are enabled at the same time, clicking the clear button doesn't clear the input and/or value

Expected Behavior

Clicking the clear button should clear the input and selectedTime and value state

Logs

No response

Requested priority

Normal

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions