angular / angular/components

Stepper should provide an click event for step changes

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

説明

Bug, feature request, or proposal:
Feature request

What is the expected behavior?
Add an click event that gets triggered when the step is clicked in the stepper component

What is the current behavior?
There's no such event.

What are the steps to reproduce?
NA

What is the use-case or motivation for changing an existing behavior?
We have some business logic that we need to save at each step. We have to show the message on click of step "Are you confirm?", we implemented with button click but unable to do in step click, and it's moving forward to next step on clicking of step.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 9+
Angular material 11.2

Is there anything else we should know?
Tried to use selectionChange event, no use.its working after the click event. i want to show or prevent before the change event.


needs to add click event on step like above. As of there is no option like that

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

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

調査の方向性

mat-horizontal-stepper と mat-step の背後にある Angular Material の stepper 実装を特定し、selectionChange と step-click のナビゲーション経路を追跡します。利用可能であれば、関連する stepper のテストを確認します。要求された step 操作がカバーされ、issue に記載された確認または防止の動作をサポートできれば、作業は完了です。

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

評価

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

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

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