skip to Main Content

Html – mat-datepicker appears below modal in Angular, tried adjusting z-index without success

I'm experiencing an issue with a mat-datepicker appearing below a modal in my Angular application. Here are the relevant details: Html: <div class="col-12"> <mat-form-field appearance="fill"> <mat-label>Fecha Inicio</mat-label> <input matInput [matDatepicker]="pickerOne" placeholder="ingresa una fecha" formControlName="year"> <mat-datepicker-toggle matSuffix [for]="pickerOne"></mat-datepicker-toggle> <mat-datepicker #pickerOne class="custom-datepicker"></mat-datepicker>…

VIEW QUESTION

Javascript – angular formControl validation

I want to add validations to mat-select where the user needs to select at least one entry html file: <mat-form-field> <mat-label>Select drink(s):</mat-label> <mat-select [formControl]="drinks" multiple (selectionChange)="checkSelectedDrinks($event.value)"> @for (drink of drinkList; track drink) { <mat-option [value]="drink">{{drink}}</mat-option> } </mat-select> <mat-error *ngIf="drinkSelectionErr"> You…

VIEW QUESTION
Back To Top
Search