{"action":"created","comment":{"url":"https://api.github.com/repos/react-component/select/pulls/comments/147362365","pull_request_review_id":72447673,"id":147362365,"diff_hunk":"@@ -102,6 +103,16 @@ export default class Select extends React.Component {\n     this.adjustOpenState();\n   }\n \n+  componentDidMount = () => {\n+    if (this.props.autoFocus) {\n+      setTimeout(() => {\n+        this.setState({ open: true });","path":"src/Select.jsx","position":15,"original_position":15,"commit_id":"5add7904a880d9480067152a8b4205605007ac3d","original_commit_id":"5add7904a880d9480067152a8b4205605007ac3d","user":{"login":"yesmeck","id":465125,"avatar_url":"https://avatars0.githubusercontent.com/u/465125?v=4","gravatar_id":"","url":"https://api.github.com/users/yesmeck","html_url":"https://github.com/yesmeck","followers_url":"https://api.github.com/users/yesmeck/followers","following_url":"https://api.github.com/users/yesmeck/following{/other_user}","gists_url":"https://api.github.com/users/yesmeck/gists{/gist_id}","starred_url":"https://api.github.com/users/yesmeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesmeck/subscriptions","organizations_url":"https://api.github.com/users/yesmeck/orgs","repos_url":"https://api.github.com/users/yesmeck/repos","events_url":"https://api.github.com/users/yesmeck/events{/privacy}","received_events_url":"https://api.github.com/users/yesmeck/received_events","type":"User","site_admin":false},"body":"I don't think `focus == open`.","created_at":"2017-10-27T09:23:00Z","updated_at":"2017-10-27T09:23:00Z","html_url":"https://github.com/react-component/select/pull/226#discussion_r147362365","pull_request_url":"https://api.github.com/repos/react-component/select/pulls/226","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/react-component/select/pulls/comments/147362365"},"html":{"href":"https://github.com/react-component/select/pull/226#discussion_r147362365"},"pull_request":{"href":"https://api.github.com/repos/react-component/select/pulls/226"}}},"pull_request":{"url":"https://api.github.com/repos/react-component/select/pulls/226","id":142198295,"html_url":"https://github.com/react-component/select/pull/226","diff_url":"https://github.com/react-component/select/pull/226.diff","patch_url":"https://github.com/react-component/select/pull/226.patch","issue_url":"https://api.github.com/repos/react-component/select/issues/226","number":226,"state":"open","locked":false,"title":"Autofocus","user":{"login":"khankuan","id":1406170,"avatar_url":"https://avatars2.githubusercontent.com/u/1406170?v=4","gravatar_id":"","url":"https://api.github.com/users/khankuan","html_url":"https://github.com/khankuan","followers_url":"https://api.github.com/users/khankuan/followers","following_url":"https://api.github.com/users/khankuan/following{/other_user}","gists_url":"https://api.github.com/users/khankuan/gists{/gist_id}","starred_url":"https://api.github.com/users/khankuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khankuan/subscriptions","organizations_url":"https://api.github.com/users/khankuan/orgs","repos_url":"https://api.github.com/users/khankuan/repos","events_url":"https://api.github.com/users/khankuan/events{/privacy}","received_events_url":"https://api.github.com/users/khankuan/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-20T20:43:22Z","updated_at":"2017-10-27T09:23:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93857d8ab39e2c901f48f2c7f2926ce474f06acb","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/react-component/select/pulls/226/commits","review_comments_url":"https://api.github.com/repos/react-component/select/pulls/226/comments","review_comment_url":"https://api.github.com/repos/react-component/select/pulls/comments{/number}","comments_url":"https://api.github.com/repos/react-component/select/issues/226/comments","statuses_url":"https://api.github.com/repos/react-component/select/statuses/5add7904a880d9480067152a8b4205605007ac3d","head":{"label":"khankuan:autofocus","ref":"autofocus","sha":"5add7904a880d9480067152a8b4205605007ac3d","user":{"login":"khankuan","id":1406170,"avatar_url":"https://avatars2.githubusercontent.com/u/1406170?v=4","gravatar_id":"","url":"https://api.github.com/users/khankuan","html_url":"https://github.com/khankuan","followers_url":"https://api.github.com/users/khankuan/followers","following_url":"https://api.github.com/users/khankuan/following{/other_user}","gists_url":"https://api.github.com/users/khankuan/gists{/gist_id}","starred_url":"https://api.github.com/users/khankuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khankuan/subscriptions","organizations_url":"https://api.github.com/users/khankuan/orgs","repos_url":"https://api.github.com/users/khankuan/repos","events_url":"https://api.github.com/users/khankuan/events{/privacy}","received_events_url":"https://api.github.com/users/khankuan/received_events","type":"User","site_admin":false},"repo":{"id":104265504,"name":"select","full_name":"khankuan/select","owner":{"login":"khankuan","id":1406170,"avatar_url":"https://avatars2.githubusercontent.com/u/1406170?v=4","gravatar_id":"","url":"https://api.github.com/users/khankuan","html_url":"https://github.com/khankuan","followers_url":"https://api.github.com/users/khankuan/followers","following_url":"https://api.github.com/users/khankuan/following{/other_user}","gists_url":"https://api.github.com/users/khankuan/gists{/gist_id}","starred_url":"https://api.github.com/users/khankuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khankuan/subscriptions","organizations_url":"https://api.github.com/users/khankuan/orgs","repos_url":"https://api.github.com/users/khankuan/repos","events_url":"https://api.github.com/users/khankuan/events{/privacy}","received_events_url":"https://api.github.com/users/khankuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khankuan/select","description":"React Select","fork":true,"url":"https://api.github.com/repos/khankuan/select","forks_url":"https://api.github.com/repos/khankuan/select/forks","keys_url":"https://api.github.com/repos/khankuan/select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khankuan/select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khankuan/select/teams","hooks_url":"https://api.github.com/repos/khankuan/select/hooks","issue_events_url":"https://api.github.com/repos/khankuan/select/issues/events{/number}","events_url":"https://api.github.com/repos/khankuan/select/events","assignees_url":"https://api.github.com/repos/khankuan/select/assignees{/user}","branches_url":"https://api.github.com/repos/khankuan/select/branches{/branch}","tags_url":"https://api.github.com/repos/khankuan/select/tags","blobs_url":"https://api.github.com/repos/khankuan/select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khankuan/select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khankuan/select/git/refs{/sha}","trees_url":"https://api.github.com/repos/khankuan/select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khankuan/select/statuses/{sha}","languages_url":"https://api.github.com/repos/khankuan/select/languages","stargazers_url":"https://api.github.com/repos/khankuan/select/stargazers","contributors_url":"https://api.github.com/repos/khankuan/select/contributors","subscribers_url":"https://api.github.com/repos/khankuan/select/subscribers","subscription_url":"https://api.github.com/repos/khankuan/select/subscription","commits_url":"https://api.github.com/repos/khankuan/select/commits{/sha}","git_commits_url":"https://api.github.com/repos/khankuan/select/git/commits{/sha}","comments_url":"https://api.github.com/repos/khankuan/select/comments{/number}","issue_comment_url":"https://api.github.com/repos/khankuan/select/issues/comments{/number}","contents_url":"https://api.github.com/repos/khankuan/select/contents/{+path}","compare_url":"https://api.github.com/repos/khankuan/select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khankuan/select/merges","archive_url":"https://api.github.com/repos/khankuan/select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khankuan/select/downloads","issues_url":"https://api.github.com/repos/khankuan/select/issues{/number}","pulls_url":"https://api.github.com/repos/khankuan/select/pulls{/number}","milestones_url":"https://api.github.com/repos/khankuan/select/milestones{/number}","notifications_url":"https://api.github.com/repos/khankuan/select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khankuan/select/labels{/name}","releases_url":"https://api.github.com/repos/khankuan/select/releases{/id}","deployments_url":"https://api.github.com/repos/khankuan/select/deployments","created_at":"2017-09-20T20:40:50Z","updated_at":"2017-09-20T20:40:52Z","pushed_at":"2017-09-20T20:43:10Z","git_url":"git://github.com/khankuan/select.git","ssh_url":"git@github.com:khankuan/select.git","clone_url":"https://github.com/khankuan/select.git","svn_url":"https://github.com/khankuan/select","homepage":"http://react-component.github.io/select/","size":11676,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"react-component:master","ref":"master","sha":"fdc0dae366b470fd7184471ce45a03f197b4c4ea","user":{"login":"react-component","id":9441414,"avatar_url":"https://avatars0.githubusercontent.com/u/9441414?v=4","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"repo":{"id":30027024,"name":"select","full_name":"react-component/select","owner":{"login":"react-component","id":9441414,"avatar_url":"https://avatars0.githubusercontent.com/u/9441414?v=4","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-component/select","description":"React Select","fork":false,"url":"https://api.github.com/repos/react-component/select","forks_url":"https://api.github.com/repos/react-component/select/forks","keys_url":"https://api.github.com/repos/react-component/select/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-component/select/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-component/select/teams","hooks_url":"https://api.github.com/repos/react-component/select/hooks","issue_events_url":"https://api.github.com/repos/react-component/select/issues/events{/number}","events_url":"https://api.github.com/repos/react-component/select/events","assignees_url":"https://api.github.com/repos/react-component/select/assignees{/user}","branches_url":"https://api.github.com/repos/react-component/select/branches{/branch}","tags_url":"https://api.github.com/repos/react-component/select/tags","blobs_url":"https://api.github.com/repos/react-component/select/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-component/select/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-component/select/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-component/select/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-component/select/statuses/{sha}","languages_url":"https://api.github.com/repos/react-component/select/languages","stargazers_url":"https://api.github.com/repos/react-component/select/stargazers","contributors_url":"https://api.github.com/repos/react-component/select/contributors","subscribers_url":"https://api.github.com/repos/react-component/select/subscribers","subscription_url":"https://api.github.com/repos/react-component/select/subscription","commits_url":"https://api.github.com/repos/react-component/select/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-component/select/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-component/select/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-component/select/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-component/select/contents/{+path}","compare_url":"https://api.github.com/repos/react-component/select/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-component/select/merges","archive_url":"https://api.github.com/repos/react-component/select/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-component/select/downloads","issues_url":"https://api.github.com/repos/react-component/select/issues{/number}","pulls_url":"https://api.github.com/repos/react-component/select/pulls{/number}","milestones_url":"https://api.github.com/repos/react-component/select/milestones{/number}","notifications_url":"https://api.github.com/repos/react-component/select/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-component/select/labels{/name}","releases_url":"https://api.github.com/repos/react-component/select/releases{/id}","deployments_url":"https://api.github.com/repos/react-component/select/deployments","created_at":"2015-01-29T15:38:52Z","updated_at":"2017-10-26T00:27:17Z","pushed_at":"2017-10-27T07:52:50Z","git_url":"git://github.com/react-component/select.git","ssh_url":"git@github.com:react-component/select.git","clone_url":"https://github.com/react-component/select.git","svn_url":"https://github.com/react-component/select","homepage":"http://react-component.github.io/select/","size":11709,"stargazers_count":205,"watchers_count":205,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":96,"mirror_url":null,"archived":false,"open_issues_count":17,"forks":96,"open_issues":17,"watchers":205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/react-component/select/pulls/226"},"html":{"href":"https://github.com/react-component/select/pull/226"},"issue":{"href":"https://api.github.com/repos/react-component/select/issues/226"},"comments":{"href":"https://api.github.com/repos/react-component/select/issues/226/comments"},"review_comments":{"href":"https://api.github.com/repos/react-component/select/pulls/226/comments"},"review_comment":{"href":"https://api.github.com/repos/react-component/select/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/react-component/select/pulls/226/commits"},"statuses":{"href":"https://api.github.com/repos/react-component/select/statuses/5add7904a880d9480067152a8b4205605007ac3d"}},"author_association":"NONE"}}
{"actor":{"display_login":"yesmeck"}}