angular / angular/components

Stepper should provide an click event for step changes

Abierto
#22,416 6 comentarios 2 reacciones 0 asignados Ver en GitHub
area: cdk/stepper feature P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Localiza la implementación del stepper de Angular Material detrás de mat-horizontal-stepper y mat-step, y luego sigue las rutas de navegación de selectionChange y step-click. Revisa las pruebas relevantes del stepper, si están disponibles; el trabajo estará completo cuando la interacción solicitada con el step esté cubierta y admita el comportamiento de confirmación o prevención descrito en el issue.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.