Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cascader 级联选择器] autofocus无效 #4203

Closed
527430408 opened this issue May 20, 2024 · 3 comments
Closed

[Cascader 级联选择器] autofocus无效 #4203

527430408 opened this issue May 20, 2024 · 3 comments
Labels
to be published to be published

Comments

@527430408
Copy link

tdesign-vue-next 版本

1.9.0

重现链接

No response

重现步骤

<t-cascader ref="cascaderRef" autofocus/> 无法获取焦点,用ref的形式也无法获取焦点 cascaderRef.value.focus()

期望结果

能自动获取焦点,cascaderRef.value.focus() 也能生效

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

windows10

Node版本

20.13

补充说明

No response

Copy link
Contributor

👋 @527430408,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the to be published to be published label Jun 6, 2024
@uyarn
Copy link
Collaborator

uyarn commented Jun 6, 2024

autofocus确实是有问题,今天的版本会修复;
ref.focus的问题,因为 cascader 本身不是个具体的input节点 所以它的ref是不能被focus的,需要往里面找到真正的Input节点foucs

@uyarn uyarn mentioned this issue Jun 6, 2024
16 tasks
@uyarn
Copy link
Collaborator

uyarn commented Jun 7, 2024

autofocus API has been fixed in 1.9.6

@uyarn uyarn closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
Development

No branches or pull requests

2 participants