-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
响应式表单使用[formControl]时没有错误样式 #3551
Comments
Translation of this issue: Responsive forms have no error style when using [formControl]Reproduction linkhttps://stackblitz.com/edit/ng-zorro-antd-start-ehvwjt Steps to reproduceWhen the responsive form uses [formControl] without using formControlName, the error prompt and the input box do not turn red. What is expected?The has-error style should be added to display a red error message. What is actually happening?The error message and the input box did not turn red.
|
@ismezy 你使用formControlName就有吗,我用这个也没有 |
@HDNRAY 输入1个字符,再删除就会出现错误提示。 |
@ismezy 看了你的demo,又研究了一下。因为我是把control和input放在2个不同的component里,所以发现手动设置nzValidateStatus,可以暂时修复这个问题,文档说是7.3.0开始提供的 |
@HDNRAY 好的,谢谢。:clap: |
已经修复,在 8.0.0 版本中会发布,感谢反馈 |
版本8可以,9到11版本 错误样式没有了 |
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-ehvwjt
Steps to reproduce
响应式表单在不使用formControlName而使用[formControl]时,错误提示和input框没有变成红色。
What is expected?
应该添加has-error样式,显示红色错误提示。
What is actually happening?
错误提示和input框没有变成红色。
The text was updated successfully, but these errors were encountered: