angular / angular/components

Radios should have separate unique selection in different form containers

Ouverte
#5,983 10 commentaires 4 réactions 0 personnes assignées Voir sur GitHub
area: material/radio help wanted P4
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:
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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la reproduction Plunker fournie et vérifiez que des radio-group portant des noms identiques dans des formulaires distincts s’influencent actuellement. Retracez le comportement de Angular Material radio-group qui en est responsable, puis ajoutez un test de régression montrant que chaque formulaire conserve sa propre sélection et exécutez la suite de tests pertinente.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.