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

mat-select not showing mat-error on submit. #8271

Closed
RenaldoV opened this issue Nov 7, 2017 · 3 comments
Closed

mat-select not showing mat-error on submit. #8271

RenaldoV opened this issue Nov 7, 2017 · 3 comments

Comments

@RenaldoV
Copy link

RenaldoV commented Nov 7, 2017

Bug, feature request, or proposal:

mat-error not displayed when form is submitted. I see there was an issue on this which has been closed, but I'm still experiencing this problem after my update to 2.00-beta-12.

<mat-form-field>
      <mat-select placeholder="Choose Job Role*" formControlName="role" ng-required="true">
        <mat-option *ngFor="let rl of roles" [value]="rl">{{ rl }}</mat-option>
      </mat-select>
      <mat-error *ngIf="role.hasError('required')">
        Job Role is required.
      </mat-error>
</mat-form-field>

on touch and leave the error shows, but not on submit.

What is the expected behavior?

After form submission the relevant error message should show if the select field is invalid.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

  • Angular ^4.4.6
  • Typescript ^2.6.1
  • Material ^2.00-beta.12
  • OS Windows 10
  • Browsers (Chrome, Firefox)
@willshowell
Copy link
Contributor

@josephperrott
Copy link
Member

Closing as closed by #7640

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants