{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material/pulls/comments/46887557","id":46887557,"diff_hunk":"@@ -98,6 +98,31 @@ describe('<md-autocomplete>', function() {\n       element.remove();\n     }));\n \n+    it('should allow receiving focus on the autocomplete', function() {\n+      var scope = createScope(null, {inputId: 'custom-input-id'});\n+      var template = '\\","path":"src/components/autocomplete/autocomplete.spec.js","position":6,"original_position":6,"commit_id":"f8fcbb20fa41c2e477c258c8032d4bb7db0c43b2","original_commit_id":"f8fcbb20fa41c2e477c258c8032d4bb7db0c43b2","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},"body":"Yeah- typically good, but I've been hoping to eliminate the `\\` stuff over time. ","created_at":"2015-12-07T22:25:39Z","updated_at":"2015-12-07T22:25:39Z","html_url":"https://github.com/angular/material/pull/6135#discussion_r46887557","pull_request_url":"https://api.github.com/repos/angular/material/pulls/6135","_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/comments/46887557"},"html":{"href":"https://github.com/angular/material/pull/6135#discussion_r46887557"},"pull_request":{"href":"https://api.github.com/repos/angular/material/pulls/6135"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/6135","id":52900818,"html_url":"https://github.com/angular/material/pull/6135","diff_url":"https://github.com/angular/material/pull/6135.diff","patch_url":"https://github.com/angular/material/pull/6135.patch","issue_url":"https://api.github.com/repos/angular/material/issues/6135","number":6135,"state":"open","locked":false,"title":"fix(autocomplete): always set tabindex to allow receiving focus.","user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"body":"At the moment we only set the `tabindex` if we specify a `tabindex` attribute.\r\n\r\nThat's why the autocomplete won't receive focus on `sidenav` autofocus.\r\n\r\nCloses #6101 Fixes #5665\r\n\r\nPlease review @jelbourn ","created_at":"2015-12-07T21:07:07Z","updated_at":"2015-12-07T22:25:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a098d1d49473eca130d66b598d16626929fa699","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/material/pulls/6135/commits","review_comments_url":"https://api.github.com/repos/angular/material/pulls/6135/comments","review_comment_url":"https://api.github.com/repos/angular/material/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material/issues/6135/comments","statuses_url":"https://api.github.com/repos/angular/material/statuses/f8fcbb20fa41c2e477c258c8032d4bb7db0c43b2","head":{"label":"DevVersion:fix/autocomplete-receive-focus","ref":"fix/autocomplete-receive-focus","sha":"f8fcbb20fa41c2e477c258c8032d4bb7db0c43b2","user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"repo":{"id":45487944,"name":"material","full_name":"DevVersion/material","owner":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DevVersion/material","description":"Material design for Angular","fork":true,"url":"https://api.github.com/repos/DevVersion/material","forks_url":"https://api.github.com/repos/DevVersion/material/forks","keys_url":"https://api.github.com/repos/DevVersion/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevVersion/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevVersion/material/teams","hooks_url":"https://api.github.com/repos/DevVersion/material/hooks","issue_events_url":"https://api.github.com/repos/DevVersion/material/issues/events{/number}","events_url":"https://api.github.com/repos/DevVersion/material/events","assignees_url":"https://api.github.com/repos/DevVersion/material/assignees{/user}","branches_url":"https://api.github.com/repos/DevVersion/material/branches{/branch}","tags_url":"https://api.github.com/repos/DevVersion/material/tags","blobs_url":"https://api.github.com/repos/DevVersion/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevVersion/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevVersion/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevVersion/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevVersion/material/statuses/{sha}","languages_url":"https://api.github.com/repos/DevVersion/material/languages","stargazers_url":"https://api.github.com/repos/DevVersion/material/stargazers","contributors_url":"https://api.github.com/repos/DevVersion/material/contributors","subscribers_url":"https://api.github.com/repos/DevVersion/material/subscribers","subscription_url":"https://api.github.com/repos/DevVersion/material/subscription","commits_url":"https://api.github.com/repos/DevVersion/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevVersion/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevVersion/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevVersion/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevVersion/material/contents/{+path}","compare_url":"https://api.github.com/repos/DevVersion/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevVersion/material/merges","archive_url":"https://api.github.com/repos/DevVersion/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevVersion/material/downloads","issues_url":"https://api.github.com/repos/DevVersion/material/issues{/number}","pulls_url":"https://api.github.com/repos/DevVersion/material/pulls{/number}","milestones_url":"https://api.github.com/repos/DevVersion/material/milestones{/number}","notifications_url":"https://api.github.com/repos/DevVersion/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevVersion/material/labels{/name}","releases_url":"https://api.github.com/repos/DevVersion/material/releases{/id}","created_at":"2015-11-03T18:45:53Z","updated_at":"2015-11-05T13:47:22Z","pushed_at":"2015-12-07T22:19:08Z","git_url":"git://github.com/DevVersion/material.git","ssh_url":"git@github.com:DevVersion/material.git","clone_url":"https://github.com/DevVersion/material.git","svn_url":"https://github.com/DevVersion/material","homepage":"https://material.angularjs.org/","size":57741,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"992d9b57da096b3e9cbf150bf45073e61a5fa00a","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":21399598,"name":"material","full_name":"angular/material","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/material","description":"Material design for Angular","fork":false,"url":"https://api.github.com/repos/angular/material","forks_url":"https://api.github.com/repos/angular/material/forks","keys_url":"https://api.github.com/repos/angular/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/material/teams","hooks_url":"https://api.github.com/repos/angular/material/hooks","issue_events_url":"https://api.github.com/repos/angular/material/issues/events{/number}","events_url":"https://api.github.com/repos/angular/material/events","assignees_url":"https://api.github.com/repos/angular/material/assignees{/user}","branches_url":"https://api.github.com/repos/angular/material/branches{/branch}","tags_url":"https://api.github.com/repos/angular/material/tags","blobs_url":"https://api.github.com/repos/angular/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/material/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/material/languages","stargazers_url":"https://api.github.com/repos/angular/material/stargazers","contributors_url":"https://api.github.com/repos/angular/material/contributors","subscribers_url":"https://api.github.com/repos/angular/material/subscribers","subscription_url":"https://api.github.com/repos/angular/material/subscription","commits_url":"https://api.github.com/repos/angular/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/material/contents/{+path}","compare_url":"https://api.github.com/repos/angular/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/material/merges","archive_url":"https://api.github.com/repos/angular/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/material/downloads","issues_url":"https://api.github.com/repos/angular/material/issues{/number}","pulls_url":"https://api.github.com/repos/angular/material/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/material/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/material/labels{/name}","releases_url":"https://api.github.com/repos/angular/material/releases{/id}","created_at":"2014-07-01T19:20:06Z","updated_at":"2015-12-07T22:18:23Z","pushed_at":"2015-12-07T22:19:08Z","git_url":"git://github.com/angular/material.git","ssh_url":"git@github.com:angular/material.git","clone_url":"https://github.com/angular/material.git","svn_url":"https://github.com/angular/material","homepage":"https://material.angularjs.org/","size":62551,"stargazers_count":11510,"watchers_count":11510,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2135,"mirror_url":null,"open_issues_count":1309,"forks":2135,"open_issues":1309,"watchers":11510,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/6135"},"html":{"href":"https://github.com/angular/material/pull/6135"},"issue":{"href":"https://api.github.com/repos/angular/material/issues/6135"},"comments":{"href":"https://api.github.com/repos/angular/material/issues/6135/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material/pulls/6135/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material/pulls/6135/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material/statuses/f8fcbb20fa41c2e477c258c8032d4bb7db0c43b2"}}}}