{"action":"created","comment":{"url":"https://api.github.com/repos/onefinestay/react-daterange-picker/pulls/comments/59117193","id":59117193,"diff_hunk":"@@ -78,23 +78,29 @@ var CalendarDate = _react2['default'].createClass({\n       mouseDown: false\n     };\n   },\n+  componentWillUnmount: function componentWillUnmount() {\n+    this.isUnmounted = true;\n+  },\n \n   mouseUp: function mouseUp() {\n     this.props.onSelectDate(this.props.date);\n-\n-    if (this.state.mouseDown) {\n-      this.setState({\n-        mouseDown: false\n-      });\n+    if (!this.isUnmounted) {\n+      if (this.state.mouseDown) {\n+        this.setState({\n+          mouseDown: false\n+        });\n+      }\n+      document.removeEventListener('mouseup', this.mouseUp);\n     }\n-    document.removeEventListener('mouseup', this.mouseUp);\n   },\n \n   mouseDown: function mouseDown() {\n-    this.setState({\n-      mouseDown: true\n-    });\n-    document.addEventListener('mouseup', this.mouseUp);\n+    if (!this.isUnmounted) {","path":"dist/calendar/CalendarDate.js","position":null,"original_position":31,"commit_id":"4c07241a74bd4551c39306e42f4422e063d7072c","original_commit_id":"e317eb456ad5151d488827540dffc767da52bb77","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":"@eliseumds While I don't disagree with this observation, I feel this is a separate issue on the approach already in the existing framework, maybe raise a separate issue?","created_at":"2016-04-09T16:01:37Z","updated_at":"2016-04-09T16:01:37Z","html_url":"https://github.com/onefinestay/react-daterange-picker/pull/128#discussion_r59117193","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/59117193"},"html":{"href":"https://github.com/onefinestay/react-daterange-picker/pull/128#discussion_r59117193"},"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-04-09T16:01:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97c2595732894ae2200ae812a60587bd12912819","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/4c07241a74bd4551c39306e42f4422e063d7072c","head":{"label":"jonniedarko:master","ref":"master","sha":"4c07241a74bd4551c39306e42f4422e063d7072c","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-04-09T15:59:38Z","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":5800,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"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-04-08T10:18:51Z","pushed_at":"2016-04-09T15:59:39Z","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":5564,"stargazers_count":257,"watchers_count":257,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":87,"mirror_url":null,"open_issues_count":37,"forks":87,"open_issues":37,"watchers":257,"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/4c07241a74bd4551c39306e42f4422e063d7072c"}}}}