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

希望 radio-group 能够支持 ReactiveForms 模式下的组件禁用 #1543

Closed
jakechan2012 opened this issue May 29, 2018 · 2 comments · Fixed by #1574
Closed

希望 radio-group 能够支持 ReactiveForms 模式下的组件禁用 #1543

jakechan2012 opened this issue May 29, 2018 · 2 comments · Fixed by #1574
Assignees
Labels

Comments

@jakechan2012
Copy link

jakechan2012 commented May 29, 2018

What problem does this feature solve?

部分代码如下:

https://stackblitz.com/edit/ng-zorro-antd-setup-rtynm4?file=app%2Fapp.component.ts

this.validateForm = this.fb.group({
  field1: [ { value: null, disabled: true }, [ Validators.required ] ],
  field2: [ { value: null, disabled: true }, [ Validators.required ] ], // radio-group doesn't work
  field3: [ { value: [{ label: 'field3', value: 3, checked: true }], disabled: true }, [ Validators.required ] ]
});

目前大部分组件,例如 input、select、switch、checkbox-group、date-picker 等都是支持响应式表单下禁用的,但是 radio-group 却不可以,希望可以支持,谢谢

What does the proposed API look like?

我不知道这是 BUG 还是功能未实现?

@vthinkxie vthinkxie self-assigned this May 29, 2018
@vthinkxie
Copy link
Member

下个版本修复,感谢反馈

@lock
Copy link

lock bot commented Jun 1, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2019
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants