{"action":"created","comment":{"url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments/54927692","id":54927692,"diff_hunk":"@@ -90,11 +90,17 @@ const DateRangePicker = React.createClass({\n   componentWillReceiveProps(nextProps) {\n     var nextDateStates = this.getDateStates(nextProps);\n     var nextEnabledRange = this.getEnabledRange(nextProps);\n-\n-    this.setState({\n+    var updatedState = {\n       dateStates: this.state.dateStates && Immutable.is(this.state.dateStates, nextDateStates) ? this.state.dateStates : nextDateStates,\n       enabledRange: this.state.enabledRange && this.state.enabledRange.isSame(nextEnabledRange) ? this.state.enabledRange : nextEnabledRange,\n-    });\n+    };\n+\n+    if (nextProps.value ){","path":"src/DateRangePicker.jsx","position":null,"original_position":12,"commit_id":"980c7475d6545fb88b63fe8b5c23cde9d4790ca2","original_commit_id":"fc9214f87706f1cd7b384f5a2787cc473972a87d","user":{"login":"jonniedarko","id":3673943,"avatar_url":"https://avatars.githubusercontent.com/u/3673943?v=3","gravatar_id":"","url":"https://api.github.com/users/jonniedarko","html_url":"https://github.com/jonniedarko","followers_url":"https://api.github.com/users/jonniedarko/followers","following_url":"https://api.github.com/users/jonniedarko/following{/other_user}","gists_url":"https://api.github.com/users/jonniedarko/gists{/gist_id}","starred_url":"https://api.github.com/users/jonniedarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonniedarko/subscriptions","organizations_url":"https://api.github.com/users/jonniedarko/orgs","repos_url":"https://api.github.com/users/jonniedarko/repos","events_url":"https://api.github.com/users/jonniedarko/events{/privacy}","received_events_url":"https://api.github.com/users/jonniedarko/received_events","type":"User","site_admin":false},"body":"@AlanFoster I am half way towards a solution, as well as being able to set range externally but will not get it complete for a couple of weeks , are you happy to just leave the PR open till then? Or close and I can re-submit when ready if that would be preferable. Thanks ","created_at":"2016-03-03T18:53:10Z","updated_at":"2016-03-03T18:53:10Z","html_url":"https://github.com/onefinestay/react-daterange-picker/pull/128#discussion_r54927692","pull_request_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128","_links":{"self":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments/54927692"},"html":{"href":"https://github.com/onefinestay/react-daterange-picker/pull/128#discussion_r54927692"},"pull_request":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128"}}},"pull_request":{"url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128","id":60696662,"html_url":"https://github.com/onefinestay/react-daterange-picker/pull/128","diff_url":"https://github.com/onefinestay/react-daterange-picker/pull/128.diff","patch_url":"https://github.com/onefinestay/react-daterange-picker/pull/128.patch","issue_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/128","number":128,"state":"open","locked":false,"title":"Allow updating Calendar props to reset the month and year","user":{"login":"jonniedarko","id":3673943,"avatar_url":"https://avatars.githubusercontent.com/u/3673943?v=3","gravatar_id":"","url":"https://api.github.com/users/jonniedarko","html_url":"https://github.com/jonniedarko","followers_url":"https://api.github.com/users/jonniedarko/followers","following_url":"https://api.github.com/users/jonniedarko/following{/other_user}","gists_url":"https://api.github.com/users/jonniedarko/gists{/gist_id}","starred_url":"https://api.github.com/users/jonniedarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonniedarko/subscriptions","organizations_url":"https://api.github.com/users/jonniedarko/orgs","repos_url":"https://api.github.com/users/jonniedarko/repos","events_url":"https://api.github.com/users/jonniedarko/events{/privacy}","received_events_url":"https://api.github.com/users/jonniedarko/received_events","type":"User","site_admin":false},"body":"This should deal with the issue #125 . if you want any changes to accept please let me know, I'd be happy to. styling on example page may be somewhere you might consider requiring an update","created_at":"2016-02-25T15:33:37Z","updated_at":"2016-03-03T18:53:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a82e240b271d8582a5c1632313ae4a7138820c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128/commits","review_comments_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128/comments","review_comment_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/128/comments","statuses_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/statuses/980c7475d6545fb88b63fe8b5c23cde9d4790ca2","head":{"label":"jonniedarko:master","ref":"master","sha":"980c7475d6545fb88b63fe8b5c23cde9d4790ca2","user":{"login":"jonniedarko","id":3673943,"avatar_url":"https://avatars.githubusercontent.com/u/3673943?v=3","gravatar_id":"","url":"https://api.github.com/users/jonniedarko","html_url":"https://github.com/jonniedarko","followers_url":"https://api.github.com/users/jonniedarko/followers","following_url":"https://api.github.com/users/jonniedarko/following{/other_user}","gists_url":"https://api.github.com/users/jonniedarko/gists{/gist_id}","starred_url":"https://api.github.com/users/jonniedarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonniedarko/subscriptions","organizations_url":"https://api.github.com/users/jonniedarko/orgs","repos_url":"https://api.github.com/users/jonniedarko/repos","events_url":"https://api.github.com/users/jonniedarko/events{/privacy}","received_events_url":"https://api.github.com/users/jonniedarko/received_events","type":"User","site_admin":false},"repo":{"id":52526650,"name":"react-daterange-picker","full_name":"jonniedarko/react-daterange-picker","owner":{"login":"jonniedarko","id":3673943,"avatar_url":"https://avatars.githubusercontent.com/u/3673943?v=3","gravatar_id":"","url":"https://api.github.com/users/jonniedarko","html_url":"https://github.com/jonniedarko","followers_url":"https://api.github.com/users/jonniedarko/followers","following_url":"https://api.github.com/users/jonniedarko/following{/other_user}","gists_url":"https://api.github.com/users/jonniedarko/gists{/gist_id}","starred_url":"https://api.github.com/users/jonniedarko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonniedarko/subscriptions","organizations_url":"https://api.github.com/users/jonniedarko/orgs","repos_url":"https://api.github.com/users/jonniedarko/repos","events_url":"https://api.github.com/users/jonniedarko/events{/privacy}","received_events_url":"https://api.github.com/users/jonniedarko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonniedarko/react-daterange-picker","description":"","fork":true,"url":"https://api.github.com/repos/jonniedarko/react-daterange-picker","forks_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/forks","keys_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/teams","hooks_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/hooks","issue_events_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/issues/events{/number}","events_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/events","assignees_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/assignees{/user}","branches_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/branches{/branch}","tags_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/tags","blobs_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/statuses/{sha}","languages_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/languages","stargazers_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/stargazers","contributors_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/contributors","subscribers_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/subscribers","subscription_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/subscription","commits_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/contents/{+path}","compare_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/merges","archive_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/downloads","issues_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/issues{/number}","pulls_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/pulls{/number}","milestones_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/milestones{/number}","notifications_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/labels{/name}","releases_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/releases{/id}","deployments_url":"https://api.github.com/repos/jonniedarko/react-daterange-picker/deployments","created_at":"2016-02-25T13:35:28Z","updated_at":"2016-02-25T13:35:30Z","pushed_at":"2016-03-03T18:22:57Z","git_url":"git://github.com/jonniedarko/react-daterange-picker.git","ssh_url":"git@github.com:jonniedarko/react-daterange-picker.git","clone_url":"https://github.com/jonniedarko/react-daterange-picker.git","svn_url":"https://github.com/jonniedarko/react-daterange-picker","homepage":null,"size":5495,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"onefinestay:master","ref":"master","sha":"59a29acc9095cb647a2609ead120974867fc6fe6","user":{"login":"onefinestay","id":634153,"avatar_url":"https://avatars.githubusercontent.com/u/634153?v=3","gravatar_id":"","url":"https://api.github.com/users/onefinestay","html_url":"https://github.com/onefinestay","followers_url":"https://api.github.com/users/onefinestay/followers","following_url":"https://api.github.com/users/onefinestay/following{/other_user}","gists_url":"https://api.github.com/users/onefinestay/gists{/gist_id}","starred_url":"https://api.github.com/users/onefinestay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onefinestay/subscriptions","organizations_url":"https://api.github.com/users/onefinestay/orgs","repos_url":"https://api.github.com/users/onefinestay/repos","events_url":"https://api.github.com/users/onefinestay/events{/privacy}","received_events_url":"https://api.github.com/users/onefinestay/received_events","type":"Organization","site_admin":false},"repo":{"id":24764503,"name":"react-daterange-picker","full_name":"onefinestay/react-daterange-picker","owner":{"login":"onefinestay","id":634153,"avatar_url":"https://avatars.githubusercontent.com/u/634153?v=3","gravatar_id":"","url":"https://api.github.com/users/onefinestay","html_url":"https://github.com/onefinestay","followers_url":"https://api.github.com/users/onefinestay/followers","following_url":"https://api.github.com/users/onefinestay/following{/other_user}","gists_url":"https://api.github.com/users/onefinestay/gists{/gist_id}","starred_url":"https://api.github.com/users/onefinestay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onefinestay/subscriptions","organizations_url":"https://api.github.com/users/onefinestay/orgs","repos_url":"https://api.github.com/users/onefinestay/repos","events_url":"https://api.github.com/users/onefinestay/events{/privacy}","received_events_url":"https://api.github.com/users/onefinestay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onefinestay/react-daterange-picker","description":"","fork":false,"url":"https://api.github.com/repos/onefinestay/react-daterange-picker","forks_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/forks","keys_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/teams","hooks_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/hooks","issue_events_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/events{/number}","events_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/events","assignees_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/assignees{/user}","branches_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/branches{/branch}","tags_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/tags","blobs_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/refs{/sha}","trees_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/statuses/{sha}","languages_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/languages","stargazers_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/stargazers","contributors_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/contributors","subscribers_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/subscribers","subscription_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/subscription","commits_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/commits{/sha}","git_commits_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/git/commits{/sha}","comments_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/comments{/number}","issue_comment_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/comments{/number}","contents_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/contents/{+path}","compare_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/merges","archive_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/downloads","issues_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues{/number}","pulls_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls{/number}","milestones_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/milestones{/number}","notifications_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/labels{/name}","releases_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/releases{/id}","deployments_url":"https://api.github.com/repos/onefinestay/react-daterange-picker/deployments","created_at":"2014-10-03T15:57:48Z","updated_at":"2016-03-03T00:56:06Z","pushed_at":"2016-03-03T18:22:58Z","git_url":"git://github.com/onefinestay/react-daterange-picker.git","ssh_url":"git@github.com:onefinestay/react-daterange-picker.git","clone_url":"https://github.com/onefinestay/react-daterange-picker.git","svn_url":"https://github.com/onefinestay/react-daterange-picker","homepage":null,"size":5553,"stargazers_count":245,"watchers_count":245,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":78,"mirror_url":null,"open_issues_count":38,"forks":78,"open_issues":38,"watchers":245,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128"},"html":{"href":"https://github.com/onefinestay/react-daterange-picker/pull/128"},"issue":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/128"},"comments":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/onefinestay/react-daterange-picker/statuses/980c7475d6545fb88b63fe8b5c23cde9d4790ca2"}}}}