Skip to content

[number field] Disable focus on mobile #224

Description

@oliviertassinari

Steps to reproduce

https://mui.com/base-ui/react-number-input/#customization

Screen.Recording.2024-03-22.at.01.32.41.mov

Current behavior

The input is focused on mobile, so the virtual keyboard triggers

Expected behavior

No input focus on mobile when using the control.

Context

See https://www.notion.so/mui-org/core-Input-Number-component-364825a7bec94381809ac11ff05b4cc0. For eample https://react-spectrum.adobe.com/blog/how-we-internationalized-our-numberfield.html looks correct to me. Focus on desktop, no focus on mobile.

Your environment

@mui/[email protected]

Search keywords: focus

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: number fieldChanges related to the number field component.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions