{"action":"created","issue":{"url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/284","repository_url":"https://api.github.com/repos/YouCanBookMe/react-datetime","labels_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/284/comments","events_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/284/events","html_url":"https://github.com/YouCanBookMe/react-datetime/issues/284","id":212659570,"number":284,"title":"Uncaught TypeError: Cannot read property 'hours' of undefined","user":{"login":"ferpintado","id":1950781,"avatar_url":"https://avatars1.githubusercontent.com/u/1950781?v=4","gravatar_id":"","url":"https://api.github.com/users/ferpintado","html_url":"https://github.com/ferpintado","followers_url":"https://api.github.com/users/ferpintado/followers","following_url":"https://api.github.com/users/ferpintado/following{/other_user}","gists_url":"https://api.github.com/users/ferpintado/gists{/gist_id}","starred_url":"https://api.github.com/users/ferpintado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferpintado/subscriptions","organizations_url":"https://api.github.com/users/ferpintado/orgs","repos_url":"https://api.github.com/users/ferpintado/repos","events_url":"https://api.github.com/users/ferpintado/events{/privacy}","received_events_url":"https://api.github.com/users/ferpintado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-08T07:32:56Z","updated_at":"2018-03-14T06:39:04Z","closed_at":"2017-11-05T21:18:25Z","author_association":"NONE","body":"```\r\nUncaught TypeError: Cannot read property 'hours' of undefined\r\n    at Object.updateSelectedDate (http://localhost:3000/static/js/bundle.js:86604:8)\r\n    at Object.updateSelectedDate (http://localhost:3000/static/js/bundle.js:86925:15)\r\n    at Object.ReactErrorUtils.invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:16912:17)\r\n    at executeDispatch (http://localhost:3000/static/js/bundle.js:16694:22)\r\n    at Object.executeDispatchesInOrder (http://localhost:3000/static/js/bundle.js:16717:6)\r\n    at executeDispatchesAndRelease (http://localhost:3000/static/js/bundle.js:16105:23)\r\n    at executeDispatchesAndReleaseTopLevel (http://localhost:3000/static/js/bundle.js:16116:11)\r\n    at Array.forEach (native)\r\n    at forEachAccumulated (http://localhost:3000/static/js/bundle.js:17015:10)\r\n    at Object.processEventQueue (http://localhost:3000/static/js/bundle.js:16319:8)\r\nupdateSelectedDate @ DateTime.js:319\r\nupdateSelectedDate @ DaysView.js:115\r\nReactErrorUtils.invokeGuardedCallback @ ReactErrorUtils.js:70\r\nexecuteDispatch @ EventPluginUtils.js:85\r\nexecuteDispatchesInOrder @ EventPluginUtils.js:108\r\nexecuteDispatchesAndRelease @ EventPluginHub.js:43\r\nexecuteDispatchesAndReleaseTopLevel @ EventPluginHub.js:54\r\nforEachAccumulated @ forEachAccumulated.js:24\r\nprocessEventQueue @ EventPluginHub.js:257\r\nrunEventQueueInBatch @ ReactEventEmitterMixin.js:17\r\nhandleTopLevel @ ReactEventEmitterMixin.js:28\r\nhandleTopLevelImpl @ ReactEventListener.js:72\r\nperform @ Transaction.js:140\r\nbatchedUpdates @ ReactDefaultBatchingStrategy.js:62\r\nbatchedUpdates @ ReactUpdates.js:97\r\ndispatchEvent @ ReactEventListener.js:147\r\n\r\n\r\n```\r\n\r\nI found this error that happens once in a while while changing the day. It even happens when clicking in the same day. \r\n\r\nI am using version 2.8.8"},"comment":{"url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/comments/372919874","html_url":"https://github.com/YouCanBookMe/react-datetime/issues/284#issuecomment-372919874","issue_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/284","id":372919874,"user":{"login":"threecity","id":9032594,"avatar_url":"https://avatars1.githubusercontent.com/u/9032594?v=4","gravatar_id":"","url":"https://api.github.com/users/threecity","html_url":"https://github.com/threecity","followers_url":"https://api.github.com/users/threecity/followers","following_url":"https://api.github.com/users/threecity/following{/other_user}","gists_url":"https://api.github.com/users/threecity/gists{/gist_id}","starred_url":"https://api.github.com/users/threecity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/threecity/subscriptions","organizations_url":"https://api.github.com/users/threecity/orgs","repos_url":"https://api.github.com/users/threecity/repos","events_url":"https://api.github.com/users/threecity/events{/privacy}","received_events_url":"https://api.github.com/users/threecity/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T06:39:04Z","updated_at":"2018-03-14T06:39:04Z","author_association":"NONE","body":"Having the same issue with `renderDay` anytime I wrap the contents of the `<td/>` rather than just calling the date function:\r\n\r\nWORKS:\r\n```\r\nreturn (\r\n      <td\r\n        {...props}\r\n      >\r\n        {currentDate.date()}\r\n      </td>\r\n    )\r\n```\r\n\r\nDOESN'T WORK:\r\n```\r\nreturn (\r\n      <td\r\n        {...props}\r\n      >\r\n        <span>{currentDate.date()}</span>\r\n      </td>\r\n    )\r\n```"}}
{"actor":{"display_login":"threecity"}}