angular / angular/components

Radio Button not support formControlName in reactive form

オープン
#9,457 コメント 8 件 リアクション 32 件 担当者 0 名 GitHub で見る
area: material/radio feature forms P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### 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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている StackBlitz の再現から始め、Angular Material の mat-radio-button がリアクティブフォームにどのように関与しているかを追跡します。mat-radio-button が親の mat-radio-group なしで formControlName を使用でき、報告された value-accessor エラーが発生しなくなれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。