You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a couple other discussions around here about this, but basically, due to the way content projection works inside Angular core, mat-error won't be projected inside mat-form-field unless it is the top level element.
Uh oh!
There was an error while loading. Please reload this page.
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Dynamically added mat-error should be rendered the same as statically entered mat-errror.
What is the current behavior?
Now the error message is displayed above the red under line.
What are the steps to reproduce?
to reproduce see: https://material2-select-width-issues-1pb9sd.stackblitz.io
editor url: https://stackblitz.com/edit/material2-select-width-issues-1pb9sd
What is the use-case or motivation for changing an existing behavior?
I am trying to build some reusable components for my apps.
In order to standardize the error handling code
I want to be able to write the error messages from an array of error messages.
It will help me make my code DRY.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.4.4.
Material 2: 2.0.0-beta.12
The text was updated successfully, but these errors were encountered: