Skip to content

Input autofocus doesn't work #5427

@cihadturhan

Description

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

Version

3.1.0-rc.3

Environment

any browser vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

See codesandbox

What is expected?

Should focus

What is actually happening?

Doesn't focus


I think it's because of this.
It only works in testing environment?
https://github.com/vueComponent/ant-design-vue/blob/main/components/input/Input.tsx#L249

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions