angular / angular/components

Stepper should provide an click event for step changes

Ouverte
#22,416 6 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
area: cdk/stepper feature P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Repérez l’implémentation du stepper Angular Material derrière mat-horizontal-stepper et mat-step, puis suivez les chemins de navigation de selectionChange et step-click. Examinez les tests pertinents du stepper s’ils sont disponibles ; le travail est terminé lorsque l’interaction demandée avec le step est couverte et prend en charge le comportement de confirmation ou de prévention décrit dans l’issue.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.