Skip to content

Modal 焦点的问题 #56963

@zmny11ezmqc9n

Description

@zmny11ezmqc9n

Reproduction link

Edit on CodeSandbox

Steps to reproduce

第一次进入页面打开 与后续再次打开的焦点不一致

What is expected?

和6.1.x 版本一样 不要设置默认值 focusable.autoFocusButton

What is actually happening?

focusable.autoFocusButton = ok

Environment Info
antd 6.3.0
React v19
System windows 11
Browser "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Inactive🐛 BugAnt Design Team had proved that this is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions