Skip to content

Apply .mat-input-invalid on empty required fields at pristine #4030

Closed
@AlanCrevon

Description

@AlanCrevon

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. ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions