Skip to content

The autofocus attribute of the drawer component is invalid #4907

@Veloma-Timer

Description

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

Version

3.0.0-alpha.9

Environment

electron 15.3.0; vue 3.2.0

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/next/components/drawer/index.tsx

Steps to reproduce

  1. 创建一个input组件
  2. 创建一个drawer组件
    3.input聚焦的时候 显示drawer, input失去焦点的时候隐藏drawer
  3. 这个时候会发现drawer是出现不了的
  4. 即使将drawer的autofocus属性设置为false, 焦点依旧会脱离input

What is expected?

使drawer组件的autofocus属性生效

What is actually happening?

drawer组件的autofocus属性失效


查看了drawer组件的源码, 发现源码中虽然接收了autofocus属性, 但并未对其处理

image

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