angular / angular/components

Radios should have separate unique selection in different form containers

Đang mở
#5,983 10 bình luận 4 reaction 0 người được giao Xem trên GitHub
area: material/radio help wanted P4
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với bản tái hiện Plunker được cung cấp và xác minh rằng các radio-group có tên giống hệt nhau trong các biểu mẫu riêng biệt hiện đang ảnh hưởng lẫn nhau. Truy tìm hành vi Angular Material radio-group chịu trách nhiệm, sau đó thêm một bài kiểm thử hồi quy cho thấy mỗi biểu mẫu giữ lại lựa chọn riêng của mình và chạy bộ kiểm thử liên quan.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.