Skip to content

[number field] Disable focus on mobile #224

@oliviertassinari

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/base@5.0.0-beta.36

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