{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/5581","labels_url":"https://api.github.com/repos/angular/material/issues/5581/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/5581/comments","events_url":"https://api.github.com/repos/angular/material/issues/5581/events","html_url":"https://github.com/angular/material/issues/5581","id":115376322,"number":5581,"title":"Invalid md-datepicker does not invalidate form","user":{"login":"laberle","id":1323647,"avatar_url":"https://avatars.githubusercontent.com/u/1323647?v=3","gravatar_id":"","url":"https://api.github.com/users/laberle","html_url":"https://github.com/laberle","followers_url":"https://api.github.com/users/laberle/followers","following_url":"https://api.github.com/users/laberle/following{/other_user}","gists_url":"https://api.github.com/users/laberle/gists{/gist_id}","starred_url":"https://api.github.com/users/laberle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laberle/subscriptions","organizations_url":"https://api.github.com/users/laberle/orgs","repos_url":"https://api.github.com/users/laberle/repos","events_url":"https://api.github.com/users/laberle/events{/privacy}","received_events_url":"https://api.github.com/users/laberle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-05T21:14:56Z","updated_at":"2015-11-16T20:31:27Z","closed_at":"2015-11-16T20:31:27Z","body":"Using md-min-date and md-max-date disallow picking dates when using the datepicker, but typing an invalid date into the input box does not invalidate the form.\r\n\r\n![screenshot from 2015-11-05 14 14 02](https://cloud.githubusercontent.com/assets/1323647/10981882/7d5f3b60-83c7-11e5-8e95-2e2e5505541d.png)\r\n\r\n\r\nBasically just used the demo code and added a button. \r\nCodepen: http://codepen.io/anon/pen/xwaJvQ\r\n\r\n```html\r\n<md-content>\r\n    <form name=\"myForm\">\r\n      <md-datepicker name=\"dateField\" ng-model=\"myDate\" \r\n        required=\"true\"\r\n        md-min-date=\"minDate\" \r\n        md-max-date=\"maxDate\">\r\n      </md-datepicker>     \r\n      <md-button class=\"md-raised\" ng-disabled=\"myForm.$invalid\">Submit Form</md-button>\r\n    </form>\r\n  </md-content>\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/157160814","html_url":"https://github.com/angular/material/issues/5581#issuecomment-157160814","issue_url":"https://api.github.com/repos/angular/material/issues/5581","id":157160814,"user":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T20:31:27Z","updated_at":"2015-11-16T20:31:27Z","body":"Thanks for the dupe reference! "}}