react-component / react-component/select

<Select /> with OptGroup in "tags" mode dropdown values display issue

Open
#795 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
938
Forks
482
Avg merge
15h 8m
Merged PRs (30d)
2

Description

Reproduction link

Edit on CodeSandbox

Steps to reproduce
  1. Type in 'g1v1'
  2. The problem shows.
What is expected?

Since the g1v1 is equals to the searching keyword, the first line of the dropdown menu should hide.

What is actually happening?

The first line of dropdown options was shown.

Environment Info
antd 4.21.6
React 17
System win10 21H2
Browser chrome 103.0.5060.114

image

Is there anyone has similar experiences?
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 with the linked CodeSandbox reproduction and its demo.js, then trace the Select filtering behavior for OptGroup in tags mode. Reproduce the g1v1 search case and identify the dropdown line that remains visible. Done means the matching first line is hidden as expected, with regression coverage for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
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.