Skip to content

[SelectInput] autofocus 不生效 #3613

@fython

Description

@fython

tdesign-vue 版本

1.11.2

重现链接

https://stackblitz.com/edit/qoutxixj?file=src%2Fdemo.vue

重现步骤

  1. 基于 TDesign 官网文档 Fork 多选 SelectInput Demo
  2. 对 SelectInput 组件添加 :autofocus="true" 参数
  3. 刷新预览页面

期望结果

进入页面后自动聚焦到 SelectInput 上,展开选择面板或者光标在输入框内

Image

实际结果

进入页面后并没有自动聚焦到 SelectInput 上

Image

框架版本

Vue 2.6.14

浏览器版本

Chrome(136.0.7103.114)

系统版本

No response

Node版本

No response

补充说明

No response

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