angular / angular/components

MatStepper treats steps as `interacted` if you immediately return to a previous step

Đang mở
#14,067 8 bình luận 13 reaction 0 người được giao Xem trên GitHub
area: cdk/stepper feature 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?

Angular-material forms should be presented in a non-error state when the conditions of the default ErrorStateMatcher are not met (not touched or not submitted)

#### What is the current behavior?

When a form is presented inside a mat-stepper, when traversing to a previous step, the form will be in an error state even if the form is pristine and un-submitted. Any attempt to try to reset the form or FormGroupDirective fails.

#### What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-issue-fay224

#### What is the use-case or motivation for changing an existing behavior?

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?

#### Is there anything else we should know?

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 StackBlitz được liên kết và theo dõi tương tác của MatStepper với biểu mẫu và ErrorStateMatcher mặc định khi quay lại một bước trước đó. Hoàn tất khi một biểu mẫu nguyên trạng, chưa được gửi vẫn không ở trạng thái lỗi khi truy cập lại một bước, và việc đặt lại biểu mẫu hoặc FormGroupDirective hoạt động như mong đợi.

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
Khá rõ ràng
Mức phù hợp với người mới
35/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.