I want to create a horizontal stepper (Sh) inside of a vertical stepper (Sv). Inside Sh is a select which is required. The select becomes red when unselected but the stepper moves forward anyways. Why?
HTML:
<mat-vertical-stepper>
<mat-step>
<mat-horizontal-stepper>
<mat-step>
<form name="formProtType">
<mat-form-field>
<mat-select name="selectProtType" placeholder="Select Protocol Type" required [(ngModel)]="selectedType">
<mat-option>None</mat-option>
<mat-option *ngFor="let type of protTypes" [value]="type">{{type}}</mat-option>
</mat-select>
</mat-form-field>
<div>
<button type="submit" mat-button matStepperNext>Next</button>
</div>
</form>
</mat-step>
</mat-horizontal-stepper>
</mat-step>
<mat-step>
</mat-step>
</mat-vertical-stepper>
I have tried it with a submit button but even then it isn't working. What do I miss?