Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

datepicker: with a 'required' attr triggers incorrect error state when setting date #10360

@Phr33d0m

Description

@Phr33d0m

Actual Behavior:

  • What is the issue? * Appending required to mdDatepicker and setting the date dynamically triggers an incorrect error state, if you set the date again the error state is removed.
  • What is the expected behavior? Not to trigger the 'red line' when setting a valid date on a required mdDatepicker

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue: http://codepen.io/anon/pen/KaRzNX
  • Details: Click the button once to show the issue, click it again and the issue disappears - this happens only the first time, ever after if you click the button 100 times the error doesn't show up.

Angular Versions: *

  • Angular Version: 1.6.1
  • Angular Material Version: 1.1.3

Additional Information:

  • Browser Type: *
  • Browser Version: *
  • OS: *
  • Stack Traces:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions