Tencent / Tencent/tdesign-react

[Cascader] 在checkStrictly是否允许选中禁用父级的子项

Open
#3,724 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

这个功能解决了什么问题

在使用Cascader时有些父级仅用于分组,禁用后无法进入子集

你建议的方案是什么

禁用节点是仅禁用选择,可以展示子集及允许选中子集

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 Cascader behavior controlled by checkStrictly, focusing on how disabled parent nodes affect entering children and selecting descendants. Confirm the expected behavior for disabled grouping parents, then add coverage for displaying their children and allowing descendant selection while keeping the parent itself unselectable.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.