Tencent / Tencent/tdesign-react

[Radio] 键盘交互与原生radio元素存在差异

Open
#2,318 2 comments 0 reactions 3 assignees View on GitHub

@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 键选中)
image

原生radio的键盘交互与 https://www.w3.org/WAI/ARIA/apg/patterns/radio/#keyboardinteraction 的建议一致,可点击链接体验相应的 Examples
image

想了解下有无计划将现有的键盘交互调整为与原生radio元素键盘交互一致呀?

期望结果

与原生radio键盘交互一致的效果

实际结果

radio选项通过Tab获取焦点,需要再点击一次Enter键才能选中选项

框架版本

最新版

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.