select-country icon indicating copy to clipboard operation
select-country copied to clipboard

Possibility to use mat-error with mat-country-select

Open bastianferch opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. I am currently trying to do a Reactive Form with requirements for country. I have not found a solution to put a mat-error to show up like in every other mat-form-field.

Describe the solution you'd like It would be nice if you can use mat-error on missing input, like you can use it in every other mat-form-field. Something like this For Example:

<mat-select-country appearance="standard" label="Country" placeHolder="Country" formControlName="country" 
                 [nullable]="true" required >
                 <mat-error *ngIf="country.errors">
                  Please enter a valid country
                 </mat-error>
</mat-select-country> 

Describe alternatives you've considered I have tried to implement it using native forms, but I have found no way to look it like angular material. Some toast messages solves the problem, but does not look very good.

bastianferch avatar Dec 04 '21 12:12 bastianferch