{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/2529","labels_url":"https://api.github.com/repos/angular/material/issues/2529/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/2529/comments","events_url":"https://api.github.com/repos/angular/material/issues/2529/events","html_url":"https://github.com/angular/material/issues/2529","id":70457542,"number":2529,"title":"md-input-container doesn't clear md-input-invalid class uppon setPristine","user":{"login":"forcewill","id":759006,"avatar_url":"https://avatars.githubusercontent.com/u/759006?v=3","gravatar_id":"","url":"https://api.github.com/users/forcewill","html_url":"https://github.com/forcewill","followers_url":"https://api.github.com/users/forcewill/followers","following_url":"https://api.github.com/users/forcewill/following{/other_user}","gists_url":"https://api.github.com/users/forcewill/gists{/gist_id}","starred_url":"https://api.github.com/users/forcewill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forcewill/subscriptions","organizations_url":"https://api.github.com/users/forcewill/orgs","repos_url":"https://api.github.com/users/forcewill/repos","events_url":"https://api.github.com/users/forcewill/events{/privacy}","received_events_url":"https://api.github.com/users/forcewill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material/labels/for:%20internal%20contributor","name":"for: internal contributor","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/material/labels/needs:%20UX%20team%20review","name":"needs: UX team review","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"mhchen","id":1325549,"avatar_url":"https://avatars.githubusercontent.com/u/1325549?v=3","gravatar_id":"","url":"https://api.github.com/users/mhchen","html_url":"https://github.com/mhchen","followers_url":"https://api.github.com/users/mhchen/followers","following_url":"https://api.github.com/users/mhchen/following{/other_user}","gists_url":"https://api.github.com/users/mhchen/gists{/gist_id}","starred_url":"https://api.github.com/users/mhchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhchen/subscriptions","organizations_url":"https://api.github.com/users/mhchen/orgs","repos_url":"https://api.github.com/users/mhchen/repos","events_url":"https://api.github.com/users/mhchen/events{/privacy}","received_events_url":"https://api.github.com/users/mhchen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/17","html_url":"https://github.com/angular/material/milestones/0.12.0","labels_url":"https://api.github.com/repos/angular/material/milestones/17/labels","id":1166984,"number":17,"title":"0.12.0","description":"Polish and Bugfixes leading up to 1.0\r\n","creator":{"login":"robertmesserle","id":571363,"avatar_url":"https://avatars.githubusercontent.com/u/571363?v=3","gravatar_id":"","url":"https://api.github.com/users/robertmesserle","html_url":"https://github.com/robertmesserle","followers_url":"https://api.github.com/users/robertmesserle/followers","following_url":"https://api.github.com/users/robertmesserle/following{/other_user}","gists_url":"https://api.github.com/users/robertmesserle/gists{/gist_id}","starred_url":"https://api.github.com/users/robertmesserle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertmesserle/subscriptions","organizations_url":"https://api.github.com/users/robertmesserle/orgs","repos_url":"https://api.github.com/users/robertmesserle/repos","events_url":"https://api.github.com/users/robertmesserle/events{/privacy}","received_events_url":"https://api.github.com/users/robertmesserle/received_events","type":"User","site_admin":false},"open_issues":211,"closed_issues":196,"state":"open","created_at":"2015-06-16T15:48:24Z","updated_at":"2015-08-18T21:42:06Z","due_on":"2015-09-14T07:00:00Z","closed_at":null},"comments":2,"created_at":"2015-04-23T16:37:29Z","updated_at":"2015-08-18T22:07:29Z","closed_at":null,"body":"When using an `md-input` with an `md-input-container`   setting the form or the field as pristine\r\nprogrammatically using `$scope.formName.$setPristine()` make  `md-input-container` still keeps the `md-input-invalid` thereby still showing an underline error line\r\n\r\njsfiddle: https://jsfiddle.net/forcewill/cmdv648j/ \r\n\r\nTest by typing an invalid email and pressing add the input is underline in red"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/132370307","html_url":"https://github.com/angular/material/issues/2529#issuecomment-132370307","issue_url":"https://api.github.com/repos/angular/material/issues/2529","id":132370307,"user":{"login":"mhchen","id":1325549,"avatar_url":"https://avatars.githubusercontent.com/u/1325549?v=3","gravatar_id":"","url":"https://api.github.com/users/mhchen","html_url":"https://github.com/mhchen","followers_url":"https://api.github.com/users/mhchen/followers","following_url":"https://api.github.com/users/mhchen/following{/other_user}","gists_url":"https://api.github.com/users/mhchen/gists{/gist_id}","starred_url":"https://api.github.com/users/mhchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhchen/subscriptions","organizations_url":"https://api.github.com/users/mhchen/orgs","repos_url":"https://api.github.com/users/mhchen/repos","events_url":"https://api.github.com/users/mhchen/events{/privacy}","received_events_url":"https://api.github.com/users/mhchen/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T22:07:29Z","updated_at":"2015-08-18T22:07:29Z","body":"UX question: wanted to confirm that it makes sense for the pristine state to hide/override the invalid state. It's possible for ng-invalid and ng-pristine to be set on the same element (e.g. when the user first loads a page that has an input[required] on it), so it's kind of a judgement call how we handle the interaction between these two states. I think it makes sense for pristine to clear the md-invalid-input as is requested in this issue, but would like UX guidance to make sure."}}