Tencent / Tencent/tdesign-react

[Input] 支持传入 id,方便让label具有 htmlFor 功能

Open
#2,790 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

💪🏻 enhancement
Dominant language
TypeScript
Stars
965
Forks
373
Avg merge
3d 6h
Merged PRs (30d)
17

Description

这个功能解决了什么问题
  1. 支持原生的 htmlFor 提交更加友好
image
  1. 类选择器组件在不能输入的情况下不支持 onFocus 事件
    demo
你建议的方案是什么

标准化

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.

Research direction

Start with the Input component entry point and reproduce the behavior shown in the linked demo.tsx. Clarify how an id should connect labels through htmlFor and how focus should work for non-editable selector-like components; the work is done when both requested behaviors are standardized and verified in the relevant component examples or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.