Skip to content

The selectionChange event does not fire when completed is false #18080

@fireflysemantics

Description

@fireflysemantics

Reproduction

https://stackblitz.com/edit/angular-mat-stepper-demo-ao844t?file=src%2Fapp%2Fapp.component.html

Steps to reproduce:
1.Toggle step 1 to be incomplete
2. Try firing the selection change event by click on the step 1 or step 2 mat-step elements

The event will not fire.

In my use case I want it to fire such that I can peform the toggle using that event. So for example if Step 2 is clicked, then the event handler will perform the check that toggles the completed state of step one to true.

Expected Behavior

What behavior were you expecting to see?

The event should fire and report the correct index regardless of whether the stepper will allow progress to the step clicked on.

Actual Behavior

What behavior did you actually see?

No event is reported at all.

Environment

Stackblitz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions