Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TimePicker component does not allow for default text to be set for the comboBox #25882

Closed
2 tasks done
nipothar opened this issue Dec 2, 2022 · 1 comment
Closed
2 tasks done
Labels
Fluent UI react (v8) Issues about @fluentui/react (v8) Resolution: Duplicate

Comments

@nipothar
Copy link

nipothar commented Dec 2, 2022

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
    Memory: 15.98 GB / 31.59 GB
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (107.0.1418.56)
    Internet Explorer: 11.0.19041.1566

Are you reporting Accessibility issue?

no

Reproduction

https://codepen.io/pen?&prefill_data_id=9166bd21-6524-402c-9a36-f42eb0894a54

Bug Description

Actual Behavior

There is no way to set the default text value to be for example: "7:32" for the comboBox while the dropdown has 30min increments. Neither is the "text" properties exposed as a property for the TimePicker component.

Expected Behavior

We should have "text" or the "defaultValue" property of the comboBox exposed or some otherway to set the initial comboBox text value to be set.

Logs

No response

Requested priority

Blocking

Products/sites affected

Fidalgo

Are you willing to submit a PR to fix?

no

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.
@github-actions github-actions bot added the Fluent UI react (v8) Issues about @fluentui/react (v8) label Dec 2, 2022
@layershifter
Copy link
Member

defaultValue does not work in examples, too, https://developer.microsoft.com/en-us/fluentui#/controls/web/timepicker.

This looks like a duplicate of #25730.

@microsoft microsoft locked as resolved and limited conversation to collaborators Mar 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Fluent UI react (v8) Issues about @fluentui/react (v8) Resolution: Duplicate
Projects
None yet
Development

No branches or pull requests

3 participants