In my code, I have a vertical mat-stepper. In mat-stepper, I can't close the current mat-step when I click on it. I can only close/open the next or the previous mat-step. Is there a way to close the mat-step when its label is clicked on?
HTML:
<mat-vertical-stepper [linear]="true" #stepper matStepperPrevious>
<mat-step>
<ng-template matStepLabel>Son</ng-template>
<div>
<button mat-button class="green fuse-white-fg" matStepperNext
[disabled]="disableCompleteButton" (click)="complete(stepper)">Tamamla</button>
<button mat-button class="green fuse-white-fg ml-8"
(click)="stepper.reset(); clear()">Resetle</button>
</div>
</mat-step>
</mat-vertical-stepper>