react-component / react-component/tree-select

Query regarding search

Open
#150 1 comment 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

Thank you for this wonderful control.

We are using the rc-tree-control with a few thousand items, and it is working well, except in one scenario.

When we do a search, it is trying to search from the first character input, and this causes a long pause as it expands a large number of Tree Nodes. Is it possible for us to set a character limit for the search input before it will perform a search? For example, it must not try to search until there is at least 3 characters in the search input.

Thank you!

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 by tracing the TreeSelect search input and its current search and node-expansion behavior. Determine where a minimum search length could be configured, then verify that input shorter than three characters does not trigger searching or expansion and that searching begins at the threshold.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.