I am trying to make the rows of a table to be next steppers for a mat-stepper. The problem is that the buttons need to be double-clicked in order to be selected. I am including my code below
<mat-stepper linear #stepper>
<mat-step [completed]="firstStep">
<ng-template matStepLabel>Pick a folder</ng-template>
<table mat-table [dataSource]="folders">
<ng-container matColumnDef="folder">
<mat-header-cell *matHeaderCellDef>Folders.</mat-header-cell>
<mat-cell *matCellDef="let folder">
<button mat-button matStepperNext (click)="pickCorrectFolder(folder)">
{{ folder }}
</button></mat-cell
>
</ng-container>
<mat-header-row
*matHeaderRowDef="folderCol"
></mat-header-row>
<mat-row *matRowDef="let myRowData; columns: folderCol"> </mat-row>
</table>
</mat-step>
I want to only click once to move to the next step. Does anyone know why this is happening and how can i fix it ?