Skip to content

autofocus doesn't work for focusing an input #153

Open
@GRA0007

Description

In the documentation for a11y-dialog, it mentions that the library will look for an input with the autofocus property set when opening the dialog, however React doesn't support this property directly, instead requiring the use of autoFocus (notice the camel case), which doesn't render in the html and polyfills the autofocus behaviour provided by the browser. This of course doesn't seem to work with this library. Is there another method I can use to get autofocus behaviour in React aside from storing a ref to my input?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions