ant-design / ant-design/pro-components

🐛[BUG] ProFormSelect 组件上添加showSearch之后,每次输入都会触发request

Open
#9,022 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🐛 bug 描述

ProFormSelect 组件上添加showSearch之后,每次输入都会触发request请求,当ProFormSelect为多选模式时,不加showSearch不会触发重复请求,
ProTable中的columns valueType=‘select’也会有同样的表现

### 🏞 期望结果

showSearch 不要重复请求

### © 版本信息

- ProComponents 版本: 2.8.5
- umi 版本 ^4.1.1
- 浏览器环境 132.0.6834.83
- 开发环境 windows

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the request behavior in ProFormSelect with showSearch, comparing single- and multi-select modes and the ProTable columns path with valueType='select'. Trace the component entry points responsible for issuing requests, then verify that typing with showSearch no longer causes duplicate requests.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.