ant-design / ant-design/pro-components
🧐[问题] ProFormSelect似乎无法通过searchValue触发keyWords更新来请求新数据?
- 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
### 🧐 问题描述
ProFormSelect在使用远程搜索时,下拉框收起不会清空用户输入的搜索项,所以想通过searchValue实现下拉框收起清空搜索文本,然后以空字符串再次请求一次数据,但好像在修改searchValue时不会触发keyWords的更新并通过request请求新数据
### 💻 示例代码
### 🚑 其他信息
Contributor guide
Research direction
Start by reproducing the ProFormSelect remote-search case described with searchValue, keyWords, and request. Trace what happens when the dropdown closes and searchValue is cleared; done means the keywords update and request is sent again with an empty search value. The issue provides no example code or test file, so the relevant component and tests must first be located.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100