Tencent / Tencent/tdesign-react
[Radio] 键盘交互与原生radio元素存在差异
Open
@RylanBot is already working on this.
Since Jun 25, 2025.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
tdesign-react 版本
最新版
重现链接
无,官网示例可直接体验
重现步骤
从更新日志上看,Radio组件支持键盘操作(tab 键切换选项,enter 键选中)
原生radio的键盘交互与 https://www.w3.org/WAI/ARIA/apg/patterns/radio/#keyboardinteraction 的建议一致,可点击链接体验相应的 Examples
想了解下有无计划将现有的键盘交互调整为与原生radio元素键盘交互一致呀?
期望结果
与原生radio键盘交互一致的效果
实际结果
radio选项通过Tab获取焦点,需要再点击一次Enter键才能选中选项
框架版本
最新版
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.