angular / angular/components

Radios should have separate unique selection in different form containers

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

説明

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
Radio group controls with the same name should not correlate with each other if they belong to different forms.

#### What is the current behavior?
If you change value in one radio group, then the value will be unset for all the other radio groups with the same name in other forms

#### What are the steps to reproduce?

```



{{season}}

Second form:



{{season}}

```

Providing a Plunker (or similar) is the *best* way to get the team to see your issue.
Plunker template: https://plnkr.co/edit/6xzFen4ayfMIv9JnYgW0?p=preview

#### What is the use-case or motivation for changing an existing behavior?
Currently it's impossible to implement a list (of similar items) if its items contain forms.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/cli: 1.2.0
node: 8.0.0
os: win32 x64
@angular/animations: 4.3.1
@angular/cdk: 2.0.0-beta.8
@angular/common: 4.3.1
@angular/compiler: 4.3.1
@angular/core: 4.3.1
@angular/forms: 4.3.1
@angular/http: 4.3.1
@angular/material: 2.0.0-beta.8
@angular/platform-browser: 4.3.1
@angular/platform-browser-dynamic: 4.3.1
@angular/platform-server: 4.3.1
@angular/router: 4.3.1
@angular/cli: 1.2.0
@angular/compiler-cli: 4.3.1
@angular/language-service: 4.3.1

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

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

調査の方向性

提供された Plunker の再現から始め、別々のフォームにある同じ名前の radio-group が現在互いに影響を与えることを確認します。原因となっている Angular Material radio-group の動作を追跡し、各フォームが独自の選択を保持することを示す回帰テストを追加して、関連するテストスイートを実行します。

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

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
42/100

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

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