angular / angular/components

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

オープン
#20,215 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/stepper feature G needs: discussion P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

```

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

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

調査の方向性

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.

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

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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