ant-design / compatible

https://compatible.now.sh
MIT License
89 stars 23 forks source link

@ant-design/compatible 的 Form 中,使用 4.x 版本的 Select ,validateTrigger: 'onBlur' 时 ,表现错误 #131

Open hanyihan opened 2 years ago

hanyihan commented 2 years ago

Reproduction link

Edit on CodeSandbox

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
ALEUT commented 2 years ago

Should be something like:

.has-error .ant-select-selector {
  border-color: #ff4d4f !important;
}

.has-error .ant-select-selector:hover {
  border-color: #ff4d4f !important;
}
shenjo commented 2 years ago

+1