ant-design / ant-design/compatible
@ant-design/compatible 的 Form 中,使用 4.x 版本的 Select ,validateTrigger: 'onBlur' 时 ,表现错误
- Dominant language
- TypeScript
- Stars
- 93
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
### Reproduction link
[](https://codesandbox.io/s/deng-lu-kuang-antd-4-19-2-forked-vf6p6k?file=/index.js:1261-1287)
### Steps to reproduce
Select 选择一个值,blur select ;
### What is expected?
Select 值存在,无校验错误;
### What is actually happening?
Select 值丢失,校验失败,提示错误信息!
| Environment | Info |
| --- | --- |
| antd | 4.19.2 |
| React | ^16.14.0 |
| System | mac os |
| Browser | chrome 99.x |
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked CodeSandbox reproduction and compare the compatible Form and 4.x Select behavior when validateTrigger is set to onBlur. Verify the reported case in an environment using antd 4.19.2 and React 16.14.0; done means the selected value remains after blur and validation reports no error.
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