{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/7646","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/7646/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/7646/comments","events_url":"https://api.github.com/repos/angular/material/issues/7646/events","html_url":"https://github.com/angular/material/pull/7646","id":142082300,"number":7646,"title":"fix(mdSelect): fix flickering of ngMessages on mdSelect opening","user":{"login":"montgomery1944","id":5021862,"avatar_url":"https://avatars.githubusercontent.com/u/5021862?v=3","gravatar_id":"","url":"https://api.github.com/users/montgomery1944","html_url":"https://github.com/montgomery1944","followers_url":"https://api.github.com/users/montgomery1944/followers","following_url":"https://api.github.com/users/montgomery1944/following{/other_user}","gists_url":"https://api.github.com/users/montgomery1944/gists{/gist_id}","starred_url":"https://api.github.com/users/montgomery1944/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montgomery1944/subscriptions","organizations_url":"https://api.github.com/users/montgomery1944/orgs","repos_url":"https://api.github.com/users/montgomery1944/repos","events_url":"https://api.github.com/users/montgomery1944/events{/privacy}","received_events_url":"https://api.github.com/users/montgomery1944/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-19T17:06:07Z","updated_at":"2016-03-22T20:18:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/7646","html_url":"https://github.com/angular/material/pull/7646","diff_url":"https://github.com/angular/material/pull/7646.diff","patch_url":"https://github.com/angular/material/pull/7646.patch"},"body":"To properly prevent ngMessages from showing up on select opening,\r\nwe have to set untouched, in the $apply triggered by ngModel, after ngModel sets touched.\r\nTo be close to mdInput behaviour, we set untouched only, when mdSelect was opened.\r\n\r\ncloses #7636"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/200002974","html_url":"https://github.com/angular/material/pull/7646#issuecomment-200002974","issue_url":"https://api.github.com/repos/angular/material/issues/7646","id":200002974,"user":{"login":"montgomery1944","id":5021862,"avatar_url":"https://avatars.githubusercontent.com/u/5021862?v=3","gravatar_id":"","url":"https://api.github.com/users/montgomery1944","html_url":"https://github.com/montgomery1944","followers_url":"https://api.github.com/users/montgomery1944/followers","following_url":"https://api.github.com/users/montgomery1944/following{/other_user}","gists_url":"https://api.github.com/users/montgomery1944/gists{/gist_id}","starred_url":"https://api.github.com/users/montgomery1944/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montgomery1944/subscriptions","organizations_url":"https://api.github.com/users/montgomery1944/orgs","repos_url":"https://api.github.com/users/montgomery1944/repos","events_url":"https://api.github.com/users/montgomery1944/events{/privacy}","received_events_url":"https://api.github.com/users/montgomery1944/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T20:18:13Z","updated_at":"2016-03-22T20:18:13Z","body":"@topherfangio, I wrote a test and optimized this solution a little bit. This test will fail without the fix."}}