Radio Button not support formControlName in reactive form
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### Bug, feature request, or proposal:
proposal
#### What is the expected behavior?
mat-radio-button should support formControlName
#### What is the current behavior?
get Error:
ERROR Error: No value accessor for form control with name: 'gender'
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-slemqj-ojrv1g
#### What is the use-case or motivation for changing an existing behavior?
mat-radio-button should support formControlName withiout parrent mat-radio-group, like native html input with type radio. There is a lot use cases when you cant use mat-radio-group due to DOM restrictions
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 5.0.0
Material: 5.0.3
OS: Windows
TypeScript: 2.7.0
#### Is there anything else we should know?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et suivez la manière dont mat-radio-button de Angular Material participe aux formulaires réactifs. Le travail est terminé lorsqu’un mat-radio-button peut utiliser formControlName sans mat-radio-group parent et que l’erreur de value-accessor signalée ne se produit plus.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100