Skip to content

md-input-container invalid state #4671

Closed
@mbeckenbach

Description

@mbeckenbach

Bug, feature request, or proposal:

question, bug, or feature request. not sure

What is the expected behavior?

When a user enters text into a required input field and removes the text, there should be an immediate warning as the form control is now touched.

What is the current behavior?

The invalid color and md-error text are only updated after blur.

required

What are the steps to reproduce?

<md-input-container>
      <input mdInput formControlName="answer" [required]="true">
     <md-error *ngIf="answerControl.errors?.required">Dies ist ein Pflichtfeld.</md-error>
</md-input-container>

What is the use-case or motivation for changing an existing behavior?

better user experience

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

ng4.1.x, md beta 5

Is there anything else we should know?

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