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
{{ message }}
Apply .mat-input-invalid on empty required fields at pristine #4030
There are some cases I want to show an error even if it is untouched.
Example:
Expense: input[type="number"]
Expense itemization: textarea where [required]="selectedEvent.miscExpenses && selectedEvent.miscExpenses > 0"
The user doesn't know that there is a problem with the form. I would like to force a visual with md-is-error.
Otherwise, I have to begin adding tooltips to explain to the user why the button is disabled.
Activity
jelbourn commentedon Apr 11, 2017
For this we follow the material design spec, which calls for
AlanCrevon commentedon Apr 12, 2017
Ho... i see. Ok thanks for the answer. :)
leblancmeneses commentedon Jun 27, 2017
Is there plan to add md-is-error angular/material#1633 ?
There are some cases I want to show an error even if it is untouched.
Example:
Expense: input[type="number"]
Expense itemization: textarea where [required]="selectedEvent.miscExpenses && selectedEvent.miscExpenses > 0"
The user doesn't know that there is a problem with the form. I would like to force a visual with md-is-error.
Otherwise, I have to begin adding tooltips to explain to the user why the button is disabled.

willshowell commentedon Jun 27, 2017
@leblancmeneses #4750 should accomplish what you need
angular-automatic-lock-bot commentedon Sep 6, 2019
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.