react-component / react-component/tree-select

Official Demo window alerts for 'please select more than two item or less than one item.'

Open
#379 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
312
Forks
204
Avg merge
37m
Merged PRs (30d)
1

Description

1. What's the issue?
https://tree-select.react-component.vercel.app/?path=/story/rc-tree-select--basic
On this official demo page, if you go to 'check select' section and check 2 values, it will alert for the message given in title.

2. How to reproduce?
image

3. What's the expected behavior?
Not showing this alert and allowing for selecting arbitrary number of values, or give some explanation of why this is happening.

读了下代码似乎是用来展示onDropdownVisibleChange,是否需要标注一下用途以防误以为是bug呢?

https://github.com/react-component/tree-select/blob/c51317d9213add27d84384a479153c3a9f8a1906/examples/basic.tsx#L127-L135

如有需要我可以提交一个pr对此功能再demo页面上做些介绍。

Contributor guide

No contributing guide indexed for this repository

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 examples/basic.tsx around lines 127-135 and reproduce the alert in the official demo's check-select section. Clarify the purpose of onDropdownVisibleChange in the demo, or adjust the example so its behavior is not mistaken for a bug; verify the resulting demo interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.