{"action":"created","comment":{"url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments/32890371","id":32890371,"diff_hunk":"@@ -18,6 +20,12 @@ export default class Autosuggest extends Component { // eslint-disable-line no-s\n     id: PropTypes.string                    // Used in aria-* attributes. If multiple Autosuggest's are rendered on a page, they must have unique ids.\n   }\n \n+  componentWillReceiveProps(nextProps) {\n+    if (typeof nextProps.value === 'string') {\n+      this.onUpdate(nextProps.value);","path":"src/Autosuggest.js","position":15,"original_position":15,"commit_id":"f7e67f0f54b145a6e34615cc5fb3fb7cfafeef47","original_commit_id":"f7e67f0f54b145a6e34615cc5fb3fb7cfafeef47","user":{"login":"moroshko","id":259753,"avatar_url":"https://avatars.githubusercontent.com/u/259753?v=3","gravatar_id":"","url":"https://api.github.com/users/moroshko","html_url":"https://github.com/moroshko","followers_url":"https://api.github.com/users/moroshko/followers","following_url":"https://api.github.com/users/moroshko/following{/other_user}","gists_url":"https://api.github.com/users/moroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/moroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroshko/subscriptions","organizations_url":"https://api.github.com/users/moroshko/orgs","repos_url":"https://api.github.com/users/moroshko/repos","events_url":"https://api.github.com/users/moroshko/events{/privacy}","received_events_url":"https://api.github.com/users/moroshko/received_events","type":"User","site_admin":false},"body":"What do you think about changing `this.onUpdate()` to `this.updateValue()`? I feel it's a bit more self descriptive this way. (I used `onSomething()` functions in handlers, e.g. `onBlur={this.onInputBlur}`, but here there is no handler.) ","created_at":"2015-06-21T04:21:54Z","updated_at":"2015-06-21T04:21:54Z","html_url":"https://github.com/moroshko/react-autosuggest/pull/32#discussion_r32890371","pull_request_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments/32890371"},"html":{"href":"https://github.com/moroshko/react-autosuggest/pull/32#discussion_r32890371"},"pull_request":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32","id":37948116,"html_url":"https://github.com/moroshko/react-autosuggest/pull/32","diff_url":"https://github.com/moroshko/react-autosuggest/pull/32.diff","patch_url":"https://github.com/moroshko/react-autosuggest/pull/32.patch","issue_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/32","number":32,"state":"open","locked":false,"title":"Support for controlled components via value prop","user":{"login":"idolize","id":635005,"avatar_url":"https://avatars.githubusercontent.com/u/635005?v=3","gravatar_id":"","url":"https://api.github.com/users/idolize","html_url":"https://github.com/idolize","followers_url":"https://api.github.com/users/idolize/followers","following_url":"https://api.github.com/users/idolize/following{/other_user}","gists_url":"https://api.github.com/users/idolize/gists{/gist_id}","starred_url":"https://api.github.com/users/idolize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idolize/subscriptions","organizations_url":"https://api.github.com/users/idolize/orgs","repos_url":"https://api.github.com/users/idolize/repos","events_url":"https://api.github.com/users/idolize/events{/privacy}","received_events_url":"https://api.github.com/users/idolize/received_events","type":"User","site_admin":false},"body":"This is a breaking change: \"value\" is no longer a part of inputAttributes and instead is now a top-level property. To support uncontroleld behavior, a new \"defaultValue\" prop was added.\r\n\r\nFixes #28 \r\n@moroshko ","created_at":"2015-06-17T21:19:41Z","updated_at":"2015-06-21T04:21:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f058991655044cc28af6e78091e8a26cf65fd20a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32/commits","review_comments_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32/comments","review_comment_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/32/comments","statuses_url":"https://api.github.com/repos/moroshko/react-autosuggest/statuses/f7e67f0f54b145a6e34615cc5fb3fb7cfafeef47","head":{"label":"idolize:master","ref":"master","sha":"f7e67f0f54b145a6e34615cc5fb3fb7cfafeef47","user":{"login":"idolize","id":635005,"avatar_url":"https://avatars.githubusercontent.com/u/635005?v=3","gravatar_id":"","url":"https://api.github.com/users/idolize","html_url":"https://github.com/idolize","followers_url":"https://api.github.com/users/idolize/followers","following_url":"https://api.github.com/users/idolize/following{/other_user}","gists_url":"https://api.github.com/users/idolize/gists{/gist_id}","starred_url":"https://api.github.com/users/idolize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idolize/subscriptions","organizations_url":"https://api.github.com/users/idolize/orgs","repos_url":"https://api.github.com/users/idolize/repos","events_url":"https://api.github.com/users/idolize/events{/privacy}","received_events_url":"https://api.github.com/users/idolize/received_events","type":"User","site_admin":false},"repo":{"id":37611383,"name":"react-autosuggest","full_name":"idolize/react-autosuggest","owner":{"login":"idolize","id":635005,"avatar_url":"https://avatars.githubusercontent.com/u/635005?v=3","gravatar_id":"","url":"https://api.github.com/users/idolize","html_url":"https://github.com/idolize","followers_url":"https://api.github.com/users/idolize/followers","following_url":"https://api.github.com/users/idolize/following{/other_user}","gists_url":"https://api.github.com/users/idolize/gists{/gist_id}","starred_url":"https://api.github.com/users/idolize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idolize/subscriptions","organizations_url":"https://api.github.com/users/idolize/orgs","repos_url":"https://api.github.com/users/idolize/repos","events_url":"https://api.github.com/users/idolize/events{/privacy}","received_events_url":"https://api.github.com/users/idolize/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/idolize/react-autosuggest","description":"WAI-ARIA compliant React autosuggest component","fork":true,"url":"https://api.github.com/repos/idolize/react-autosuggest","forks_url":"https://api.github.com/repos/idolize/react-autosuggest/forks","keys_url":"https://api.github.com/repos/idolize/react-autosuggest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idolize/react-autosuggest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idolize/react-autosuggest/teams","hooks_url":"https://api.github.com/repos/idolize/react-autosuggest/hooks","issue_events_url":"https://api.github.com/repos/idolize/react-autosuggest/issues/events{/number}","events_url":"https://api.github.com/repos/idolize/react-autosuggest/events","assignees_url":"https://api.github.com/repos/idolize/react-autosuggest/assignees{/user}","branches_url":"https://api.github.com/repos/idolize/react-autosuggest/branches{/branch}","tags_url":"https://api.github.com/repos/idolize/react-autosuggest/tags","blobs_url":"https://api.github.com/repos/idolize/react-autosuggest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idolize/react-autosuggest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idolize/react-autosuggest/git/refs{/sha}","trees_url":"https://api.github.com/repos/idolize/react-autosuggest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idolize/react-autosuggest/statuses/{sha}","languages_url":"https://api.github.com/repos/idolize/react-autosuggest/languages","stargazers_url":"https://api.github.com/repos/idolize/react-autosuggest/stargazers","contributors_url":"https://api.github.com/repos/idolize/react-autosuggest/contributors","subscribers_url":"https://api.github.com/repos/idolize/react-autosuggest/subscribers","subscription_url":"https://api.github.com/repos/idolize/react-autosuggest/subscription","commits_url":"https://api.github.com/repos/idolize/react-autosuggest/commits{/sha}","git_commits_url":"https://api.github.com/repos/idolize/react-autosuggest/git/commits{/sha}","comments_url":"https://api.github.com/repos/idolize/react-autosuggest/comments{/number}","issue_comment_url":"https://api.github.com/repos/idolize/react-autosuggest/issues/comments{/number}","contents_url":"https://api.github.com/repos/idolize/react-autosuggest/contents/{+path}","compare_url":"https://api.github.com/repos/idolize/react-autosuggest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idolize/react-autosuggest/merges","archive_url":"https://api.github.com/repos/idolize/react-autosuggest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idolize/react-autosuggest/downloads","issues_url":"https://api.github.com/repos/idolize/react-autosuggest/issues{/number}","pulls_url":"https://api.github.com/repos/idolize/react-autosuggest/pulls{/number}","milestones_url":"https://api.github.com/repos/idolize/react-autosuggest/milestones{/number}","notifications_url":"https://api.github.com/repos/idolize/react-autosuggest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idolize/react-autosuggest/labels{/name}","releases_url":"https://api.github.com/repos/idolize/react-autosuggest/releases{/id}","created_at":"2015-06-17T17:55:25Z","updated_at":"2015-06-17T17:55:25Z","pushed_at":"2015-06-19T02:17:41Z","git_url":"git://github.com/idolize/react-autosuggest.git","ssh_url":"git@github.com:idolize/react-autosuggest.git","clone_url":"https://github.com/idolize/react-autosuggest.git","svn_url":"https://github.com/idolize/react-autosuggest","homepage":"","size":1732,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"moroshko:master","ref":"master","sha":"bd6fcf7813fdb3dbd91f9beb69f4d2035f7b256d","user":{"login":"moroshko","id":259753,"avatar_url":"https://avatars.githubusercontent.com/u/259753?v=3","gravatar_id":"","url":"https://api.github.com/users/moroshko","html_url":"https://github.com/moroshko","followers_url":"https://api.github.com/users/moroshko/followers","following_url":"https://api.github.com/users/moroshko/following{/other_user}","gists_url":"https://api.github.com/users/moroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/moroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroshko/subscriptions","organizations_url":"https://api.github.com/users/moroshko/orgs","repos_url":"https://api.github.com/users/moroshko/repos","events_url":"https://api.github.com/users/moroshko/events{/privacy}","received_events_url":"https://api.github.com/users/moroshko/received_events","type":"User","site_admin":false},"repo":{"id":31810895,"name":"react-autosuggest","full_name":"moroshko/react-autosuggest","owner":{"login":"moroshko","id":259753,"avatar_url":"https://avatars.githubusercontent.com/u/259753?v=3","gravatar_id":"","url":"https://api.github.com/users/moroshko","html_url":"https://github.com/moroshko","followers_url":"https://api.github.com/users/moroshko/followers","following_url":"https://api.github.com/users/moroshko/following{/other_user}","gists_url":"https://api.github.com/users/moroshko/gists{/gist_id}","starred_url":"https://api.github.com/users/moroshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moroshko/subscriptions","organizations_url":"https://api.github.com/users/moroshko/orgs","repos_url":"https://api.github.com/users/moroshko/repos","events_url":"https://api.github.com/users/moroshko/events{/privacy}","received_events_url":"https://api.github.com/users/moroshko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moroshko/react-autosuggest","description":"WAI-ARIA compliant React autosuggest component","fork":false,"url":"https://api.github.com/repos/moroshko/react-autosuggest","forks_url":"https://api.github.com/repos/moroshko/react-autosuggest/forks","keys_url":"https://api.github.com/repos/moroshko/react-autosuggest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moroshko/react-autosuggest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moroshko/react-autosuggest/teams","hooks_url":"https://api.github.com/repos/moroshko/react-autosuggest/hooks","issue_events_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/events{/number}","events_url":"https://api.github.com/repos/moroshko/react-autosuggest/events","assignees_url":"https://api.github.com/repos/moroshko/react-autosuggest/assignees{/user}","branches_url":"https://api.github.com/repos/moroshko/react-autosuggest/branches{/branch}","tags_url":"https://api.github.com/repos/moroshko/react-autosuggest/tags","blobs_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/refs{/sha}","trees_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moroshko/react-autosuggest/statuses/{sha}","languages_url":"https://api.github.com/repos/moroshko/react-autosuggest/languages","stargazers_url":"https://api.github.com/repos/moroshko/react-autosuggest/stargazers","contributors_url":"https://api.github.com/repos/moroshko/react-autosuggest/contributors","subscribers_url":"https://api.github.com/repos/moroshko/react-autosuggest/subscribers","subscription_url":"https://api.github.com/repos/moroshko/react-autosuggest/subscription","commits_url":"https://api.github.com/repos/moroshko/react-autosuggest/commits{/sha}","git_commits_url":"https://api.github.com/repos/moroshko/react-autosuggest/git/commits{/sha}","comments_url":"https://api.github.com/repos/moroshko/react-autosuggest/comments{/number}","issue_comment_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues/comments{/number}","contents_url":"https://api.github.com/repos/moroshko/react-autosuggest/contents/{+path}","compare_url":"https://api.github.com/repos/moroshko/react-autosuggest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moroshko/react-autosuggest/merges","archive_url":"https://api.github.com/repos/moroshko/react-autosuggest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moroshko/react-autosuggest/downloads","issues_url":"https://api.github.com/repos/moroshko/react-autosuggest/issues{/number}","pulls_url":"https://api.github.com/repos/moroshko/react-autosuggest/pulls{/number}","milestones_url":"https://api.github.com/repos/moroshko/react-autosuggest/milestones{/number}","notifications_url":"https://api.github.com/repos/moroshko/react-autosuggest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moroshko/react-autosuggest/labels{/name}","releases_url":"https://api.github.com/repos/moroshko/react-autosuggest/releases{/id}","created_at":"2015-03-07T12:09:12Z","updated_at":"2015-06-21T03:36:50Z","pushed_at":"2015-06-20T05:39:15Z","git_url":"git://github.com/moroshko/react-autosuggest.git","ssh_url":"git@github.com:moroshko/react-autosuggest.git","clone_url":"https://github.com/moroshko/react-autosuggest.git","svn_url":"https://github.com/moroshko/react-autosuggest","homepage":"","size":2902,"stargazers_count":112,"watchers_count":112,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":4,"forks":17,"open_issues":4,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32"},"html":{"href":"https://github.com/moroshko/react-autosuggest/pull/32"},"issue":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/issues/32"},"comments":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/moroshko/react-autosuggest/statuses/f7e67f0f54b145a6e34615cc5fb3fb7cfafeef47"}}}}