{"action":"created","issue":{"url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/281","repository_url":"https://api.github.com/repos/Hacker0x01/react-datepicker","labels_url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/281/comments","events_url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/281/events","html_url":"https://github.com/Hacker0x01/react-datepicker/issues/281","id":123552617,"number":281,"title":" Incorrect work from to","user":{"login":"Xurma2","id":5157416,"avatar_url":"https://avatars.githubusercontent.com/u/5157416?v=3","gravatar_id":"","url":"https://api.github.com/users/Xurma2","html_url":"https://github.com/Xurma2","followers_url":"https://api.github.com/users/Xurma2/followers","following_url":"https://api.github.com/users/Xurma2/following{/other_user}","gists_url":"https://api.github.com/users/Xurma2/gists{/gist_id}","starred_url":"https://api.github.com/users/Xurma2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xurma2/subscriptions","organizations_url":"https://api.github.com/users/Xurma2/orgs","repos_url":"https://api.github.com/users/Xurma2/repos","events_url":"https://api.github.com/users/Xurma2/events{/privacy}","received_events_url":"https://api.github.com/users/Xurma2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-12-22T20:41:23Z","updated_at":"2016-08-26T08:25:45Z","closed_at":"2016-01-14T11:47:31Z","body":"![image](https://cloud.githubusercontent.com/assets/5157416/11965291/cc7c965e-a904-11e5-9ac3-0b4f51845776.png)\r\n\r\nSpecifically does not work you can see - image. \r\nEvery new click on the input there is a shift in the date of the month.\r\nWhat can be wrong?\r\n\r\nI used the code from your example.\r\nMy code:\r\n\r\n```\t\r\ngetInitialState() {\r\n\t\treturn {\r\n\t\t\tstartDate: moment(),\r\n\t\t\tendDate: moment()\r\n\t\t}\r\n\t},\r\n\r\n\thandleChange(ref) {\r\n\t\tlet startDate = ref.startDate,\r\n\t\t\t  endDate = ref.endDate;\r\n\r\n\t\tif (startDate.isAfter(endDate)) {\r\n\t\t\tlet temp = startDate;\r\n\t\t\tstartDate = endDate;\r\n\t\t\tendDate = temp;\r\n\t\t}\r\n\r\n\t\tthis.setState({\r\n\t\t\tstartDate: startDate,\r\n\t\t\tendDate: endDate\r\n\t\t});\r\n\t},\r\n\r\n\thandleChangeStart(startDate) {\r\n\t\tthis.handleChange({ startDate: startDate });\r\n\t},\r\n\r\n\thandleChangeEnd(endDate) {\r\n\t\tthis.handleChange({ endDate: endDate });\r\n\t},\r\n\r\n\r\n\r\n\t\t\t\t\t\t\t\t<DatePicker\r\n\t\t\t\t\t\t\t\t            selected={this.state.startDate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartDate={this.state.startDate}\r\n\t\t\t\t\t\t\t\t            endDate={this.state.endDate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={this.handleChangeStart}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t<DatePicker\r\n\r\n\t\t\t\t\t\t\t\t            selected={this.state.endDate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartDate={this.state.startDate}\r\n\t\t\t\t\t\t\t\t            endDate={this.state.endDate}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={this.handleChangeEnd}\r\n\t\t\t\t\t\t\t\t/>\r\n\r\n```\t"},"comment":{"url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/comments/242665025","html_url":"https://github.com/Hacker0x01/react-datepicker/issues/281#issuecomment-242665025","issue_url":"https://api.github.com/repos/Hacker0x01/react-datepicker/issues/281","id":242665025,"user":{"login":"TrofimenkoAI","id":19377238,"avatar_url":"https://avatars.githubusercontent.com/u/19377238?v=3","gravatar_id":"","url":"https://api.github.com/users/TrofimenkoAI","html_url":"https://github.com/TrofimenkoAI","followers_url":"https://api.github.com/users/TrofimenkoAI/followers","following_url":"https://api.github.com/users/TrofimenkoAI/following{/other_user}","gists_url":"https://api.github.com/users/TrofimenkoAI/gists{/gist_id}","starred_url":"https://api.github.com/users/TrofimenkoAI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrofimenkoAI/subscriptions","organizations_url":"https://api.github.com/users/TrofimenkoAI/orgs","repos_url":"https://api.github.com/users/TrofimenkoAI/repos","events_url":"https://api.github.com/users/TrofimenkoAI/events{/privacy}","received_events_url":"https://api.github.com/users/TrofimenkoAI/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T08:25:45Z","updated_at":"2016-08-26T08:25:45Z","body":"Hello guys, I really enjoy date picker, but we have a little bug, when date fields jumps up and down. I mean when select date current position upper on input. Picker change his position randomly when you select month in different ways :(\r\n(Sorry for bad English)"}}
{"actor":{"display_login":"TrofimenkoAI"}}