-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Apply .mat-input-invalid on empty required fields at pristine #4030
Comments
For this we follow the material design spec, which calls for
|
Ho... i see. Ok thanks for the answer. :) |
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. 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. |
@leblancmeneses #4750 should accomplish what you need |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Request
What is the expected behavior?
.mat-input-invalid
class should be added to empty required fields on pristine.What is the current behavior?
.mat-input-invalid
is added only if the field has validator and has been touched.What is the use-case or motivation for changing an existing behavior?
Empty mandatory fields should be visible at first sight.
Which versions of Angular, Material, OS, browsers are affected?
Angular 4.0.1
Material2 Beta 3
Is there anything else we should know?
I love you. ;)
The text was updated successfully, but these errors were encountered: