angular / angular/components

Stepper should provide an click event for step changes

Aperta
#22,416 6 commenti 2 reazioni 0 assegnatari Vedi su GitHub
area: cdk/stepper feature P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Individua l’implementazione dello stepper di Angular Material alla base di mat-horizontal-stepper e mat-step, quindi traccia i percorsi di navigazione di selectionChange e step-click. Esamina i test pertinenti dello stepper, se disponibili; il lavoro è completo quando l’interazione richiesta con lo step è coperta e supporta il comportamento di conferma o prevenzione descritto nell’issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.