react-component / react-component/select

Select 自定义下拉面板, 当点击面板中的按钮+号时, 会丢失 搜索值

Open
#947 0 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

https://stackblitz.com/edit/react-djm2de?file=demo.tsx

https://stackblitz.com/edit/react-13vdsn?file=demo.tsx

Steps to reproduce
输入 1, 然后点击 下拉面板中的 号

What is expected?
点击 号, 不要清空搜索值

What is actually happening?
点击 号, 搜索值被清空了

antd issue: https://github.com/ant-design/ant-design/issues/42933

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 demo.tsx in the linked StackBlitz reproductions and enter 1 before clicking the plus button in the custom dropdown panel. Trace why that click clears the search value, then verify the search value remains after the click while preserving the reported reproduction steps.

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.