Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bastianferch opened this issue Dec 4, 2021 · 0 comments
Open

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

bastianferch opened this issue Dec 4, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bastianferch
Copy link

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.

@AnthonyNahas AnthonyNahas added the enhancement New feature or request label Jan 5, 2022
@AnthonyNahas AnthonyNahas self-assigned this Jan 5, 2022
Rogermax added a commit to Rogermax/select-country that referenced this issue Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants