Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hanyihan opened this issue Apr 7, 2022 · 2 comments

Comments

@hanyihan
Copy link

hanyihan commented Apr 7, 2022

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
@afc163 afc163 transferred this issue from ant-design/ant-design Apr 7, 2022
@ALEUT
Copy link

ALEUT commented Apr 19, 2022

Should be something like:

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

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

@shenjo
Copy link

shenjo commented May 26, 2022

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants