{"action":"created","comment":{"url":"https://api.github.com/repos/mapbox/react-geocoder/pulls/comments/31553649","id":31553649,"diff_hunk":"@@ -39,10 +40,11 @@ var Geocoder = React.createClass({\n     onSelect: React.PropTypes.func.isRequired,\n     onSuggest: React.PropTypes.func,\n     accessToken: React.PropTypes.string.isRequired,\n-    proximity: React.PropTypes.string\n+    proximity: React.PropTypes.string,\n+    focusOnMount: React.PropTypes.bool\n   },\n   componentDidMount() {\n-    this.refs.input.getDOMNode().focus();\n+    if (this.props.focusOnMount) this.refs.input.getDOMNode().focus();","path":"index.js","position":20,"original_position":20,"commit_id":"b48d7490f7376788fa4986c54877f2e4f31df662","original_commit_id":"b48d7490f7376788fa4986c54877f2e4f31df662","user":{"login":"tmcw","id":32314,"avatar_url":"https://avatars.githubusercontent.com/u/32314?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcw","html_url":"https://github.com/tmcw","followers_url":"https://api.github.com/users/tmcw/followers","following_url":"https://api.github.com/users/tmcw/following{/other_user}","gists_url":"https://api.github.com/users/tmcw/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcw/subscriptions","organizations_url":"https://api.github.com/users/tmcw/orgs","repos_url":"https://api.github.com/users/tmcw/repos","events_url":"https://api.github.com/users/tmcw/events{/privacy}","received_events_url":"https://api.github.com/users/tmcw/received_events","type":"User","site_admin":false},"body":"should be React.findDOMNode here https://facebook.github.io/react/docs/top-level-api.html#react.finddomnode like `React.findDOMNode(this.refs.input)`\r\n\r\nhttps://facebook.github.io/react/blog/2015/03/10/react-v0.13.html#new-features","created_at":"2015-06-02T18:19:40Z","updated_at":"2015-06-02T18:19:40Z","html_url":"https://github.com/mapbox/react-geocoder/pull/11#discussion_r31553649","pull_request_url":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/mapbox/react-geocoder/pulls/comments/31553649"},"html":{"href":"https://github.com/mapbox/react-geocoder/pull/11#discussion_r31553649"},"pull_request":{"href":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11","id":36757005,"html_url":"https://github.com/mapbox/react-geocoder/pull/11","diff_url":"https://github.com/mapbox/react-geocoder/pull/11.diff","patch_url":"https://github.com/mapbox/react-geocoder/pull/11.patch","issue_url":"https://api.github.com/repos/mapbox/react-geocoder/issues/11","number":11,"state":"open","locked":false,"title":"Add optional focusOnMount param","user":{"login":"aaronlidman","id":58878,"avatar_url":"https://avatars.githubusercontent.com/u/58878?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlidman","html_url":"https://github.com/aaronlidman","followers_url":"https://api.github.com/users/aaronlidman/followers","following_url":"https://api.github.com/users/aaronlidman/following{/other_user}","gists_url":"https://api.github.com/users/aaronlidman/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlidman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlidman/subscriptions","organizations_url":"https://api.github.com/users/aaronlidman/orgs","repos_url":"https://api.github.com/users/aaronlidman/repos","events_url":"https://api.github.com/users/aaronlidman/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlidman/received_events","type":"User","site_admin":false},"body":"Allows one to specify whether the geocoder input field focused when the component is mounted. Defaults to true, focusing when mounted.\r\n\r\ncc @yhahn @tmcw ","created_at":"2015-06-02T18:06:41Z","updated_at":"2015-06-02T18:19:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b7a1b31edea095167527be299e7a9c4d941f492","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11/commits","review_comments_url":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11/comments","review_comment_url":"https://api.github.com/repos/mapbox/react-geocoder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/react-geocoder/issues/11/comments","statuses_url":"https://api.github.com/repos/mapbox/react-geocoder/statuses/b48d7490f7376788fa4986c54877f2e4f31df662","head":{"label":"mapbox:focusParm","ref":"focusParm","sha":"b48d7490f7376788fa4986c54877f2e4f31df662","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":25941190,"name":"react-geocoder","full_name":"mapbox/react-geocoder","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/react-geocoder","description":"A geocoder component using Mapbox.","fork":false,"url":"https://api.github.com/repos/mapbox/react-geocoder","forks_url":"https://api.github.com/repos/mapbox/react-geocoder/forks","keys_url":"https://api.github.com/repos/mapbox/react-geocoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/react-geocoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/react-geocoder/teams","hooks_url":"https://api.github.com/repos/mapbox/react-geocoder/hooks","issue_events_url":"https://api.github.com/repos/mapbox/react-geocoder/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/react-geocoder/events","assignees_url":"https://api.github.com/repos/mapbox/react-geocoder/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/react-geocoder/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/react-geocoder/tags","blobs_url":"https://api.github.com/repos/mapbox/react-geocoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/react-geocoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/react-geocoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/react-geocoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/react-geocoder/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/react-geocoder/languages","stargazers_url":"https://api.github.com/repos/mapbox/react-geocoder/stargazers","contributors_url":"https://api.github.com/repos/mapbox/react-geocoder/contributors","subscribers_url":"https://api.github.com/repos/mapbox/react-geocoder/subscribers","subscription_url":"https://api.github.com/repos/mapbox/react-geocoder/subscription","commits_url":"https://api.github.com/repos/mapbox/react-geocoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/react-geocoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/react-geocoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/react-geocoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/react-geocoder/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/react-geocoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/react-geocoder/merges","archive_url":"https://api.github.com/repos/mapbox/react-geocoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/react-geocoder/downloads","issues_url":"https://api.github.com/repos/mapbox/react-geocoder/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/react-geocoder/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/react-geocoder/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/react-geocoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/react-geocoder/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/react-geocoder/releases{/id}","created_at":"2014-10-29T21:01:13Z","updated_at":"2015-05-12T16:21:55Z","pushed_at":"2015-06-02T18:06:42Z","git_url":"git://github.com/mapbox/react-geocoder.git","ssh_url":"git@github.com:mapbox/react-geocoder.git","clone_url":"https://github.com/mapbox/react-geocoder.git","svn_url":"https://github.com/mapbox/react-geocoder","homepage":"","size":476,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":11,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"7aff080e167345e1b76704026676d361828bcf27","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":25941190,"name":"react-geocoder","full_name":"mapbox/react-geocoder","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/react-geocoder","description":"A geocoder component using Mapbox.","fork":false,"url":"https://api.github.com/repos/mapbox/react-geocoder","forks_url":"https://api.github.com/repos/mapbox/react-geocoder/forks","keys_url":"https://api.github.com/repos/mapbox/react-geocoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/react-geocoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/react-geocoder/teams","hooks_url":"https://api.github.com/repos/mapbox/react-geocoder/hooks","issue_events_url":"https://api.github.com/repos/mapbox/react-geocoder/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/react-geocoder/events","assignees_url":"https://api.github.com/repos/mapbox/react-geocoder/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/react-geocoder/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/react-geocoder/tags","blobs_url":"https://api.github.com/repos/mapbox/react-geocoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/react-geocoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/react-geocoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/react-geocoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/react-geocoder/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/react-geocoder/languages","stargazers_url":"https://api.github.com/repos/mapbox/react-geocoder/stargazers","contributors_url":"https://api.github.com/repos/mapbox/react-geocoder/contributors","subscribers_url":"https://api.github.com/repos/mapbox/react-geocoder/subscribers","subscription_url":"https://api.github.com/repos/mapbox/react-geocoder/subscription","commits_url":"https://api.github.com/repos/mapbox/react-geocoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/react-geocoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/react-geocoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/react-geocoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/react-geocoder/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/react-geocoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/react-geocoder/merges","archive_url":"https://api.github.com/repos/mapbox/react-geocoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/react-geocoder/downloads","issues_url":"https://api.github.com/repos/mapbox/react-geocoder/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/react-geocoder/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/react-geocoder/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/react-geocoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/react-geocoder/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/react-geocoder/releases{/id}","created_at":"2014-10-29T21:01:13Z","updated_at":"2015-05-12T16:21:55Z","pushed_at":"2015-06-02T18:06:42Z","git_url":"git://github.com/mapbox/react-geocoder.git","ssh_url":"git@github.com:mapbox/react-geocoder.git","clone_url":"https://github.com/mapbox/react-geocoder.git","svn_url":"https://github.com/mapbox/react-geocoder","homepage":"","size":476,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11"},"html":{"href":"https://github.com/mapbox/react-geocoder/pull/11"},"issue":{"href":"https://api.github.com/repos/mapbox/react-geocoder/issues/11"},"comments":{"href":"https://api.github.com/repos/mapbox/react-geocoder/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/react-geocoder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/react-geocoder/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/react-geocoder/statuses/b48d7490f7376788fa4986c54877f2e4f31df662"}}}}