Skip to content

[OneTimePasswordField] autoFocus prop not auto focusing first input #3538

Open
@niklasmmsgithub

Description

@niklasmmsgithub

Bug report

Current Behavior

The first input is not focused when the autoFocus prop is set to true for OneTimePasswordField.Root.

Expected behavior

The first input is focused when the autoFocus prop is set to true as described in the docs.

Reproducible example

https://codesandbox.io/p/sandbox/bold-wind-jh7tkm

Suggested solution

Additional context

Your environment

Software Name(s) Version
Radix Package(s) radix-ui 1.4.1
React n/a >17.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions