angular / angular/components

bug(MatStepper): MatStep’s `completed` should be a 2 way binding

Đang mở
#20,215 9 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: material/stepper feature G needs: discussion P3
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ả

#### Reproduction

https://stackblitz.com/edit/angular-zxzjbv

Steps to reproduce:
The goal is to load a stepper, where some steps are (conditionally) pre-completed.

For example: Step2: Complete, Step3: Not Complete

1. Create a stepper, with multiple steps. Each step has a "completed" binding to a variable.
2. Set some of these bindings to true, and others to false.
3. “Walk” to step 2, step 3, then back to step 2 and step 1.

#### Expected Behavior

Step 3 should now be complete.

#### Actual Behavior

Step 3 is not complete, and is hard locked into a completed=false state.

#### Requests

Each step should have a `(completed)` output even. For 2 reasons:

1. We can have a 2 way binding with initial state. Eg:

```

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

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

Hướng nghiên cứu

Start with the linked StackBlitz reproduction and inspect the MatStepper and MatStep component entry points in the Angular Material source. Reproduce the conditional completion behavior, then trace how the completed binding is handled when navigating between steps. Done means completion can be initialized and observed through the requested binding without the visible reset described in the issue.

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ó
4/5
Thời gian dự kiến
3-5 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
38/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.