microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
https://react.fluentui.dev
Other
18.33k stars 2.72k forks source link

[Bug][Repro provided]: In TextField component, calling focus event using componentRef does not focus in mobile devices #30183

Open amishagupta97 opened 8 months ago

amishagupta97 commented 8 months ago

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 11 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 15.69 GB / 31.73 GB
  Browsers:
    Edge: Chromium (120.0.2210.77)
    Internet Explorer: 11.0.22621.1

Are you reporting Accessibility issue?

None

Reproduction

https://codepen.io/Amisha-Gupta-the-builder/pen/LYapmYE

Bug Description

Actual Behavior

TextField focus using componentRef does not open keyboard in mobile devices to start typing.

Expected Behavior

When using componentRef to focus text field, it should focus the text field in mobile devices for user to start typing instantly.

Logs

Affected Fluent UI control -> TextField

Requested priority

High

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

micahgodbolt commented 8 months ago

Your demo appears incomplete. The ref is never used

amishagupta97 commented 8 months ago

Your demo appears incomplete. The ref is never used

Sorry, seems like all the changes were not saved. I have updated the demo code. image

amishagupta97 commented 8 months ago

@micahgodbolt hope you were able to reproduce the issue?

amishagupta97 commented 7 months ago

@micahgodbolt requesting priority on this bug. Please let me know if you need more details.

microsoft-github-policy-service[bot] commented 1 month ago

This issue has not had activity for over 180 days! We're adding Soft close label and will close it soon for house-keeping purposes. Still require assistance? Please add comment - "keep open".