Skip to content

autofocus property does not work all the time #6998

@busybox11

Description

@busybox11
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.1

Environment

macOS Sonoma, Chrome Dev 119.0.6020.3, Firefox Developer Edition 119.0b2, Vue 3.3.4, antd 4.0.3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Open the codesandbox

What is expected?

The input field on the browser preview right panel should autofocus on the input field

What is actually happening?

It doesn't do anything, only render the input.


Going to the codesandbox preview URL in a standalone tab will make the input focus. However it does not work on some situations when developing locally, for instance I can't get it to work on a dynamically imported DIalog.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions