{"action":"created","issue":{"url":"https://api.github.com/repos/t1m0n/air-datepicker/issues/106","repository_url":"https://api.github.com/repos/t1m0n/air-datepicker","labels_url":"https://api.github.com/repos/t1m0n/air-datepicker/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/t1m0n/air-datepicker/issues/106/comments","events_url":"https://api.github.com/repos/t1m0n/air-datepicker/issues/106/events","html_url":"https://github.com/t1m0n/air-datepicker/issues/106","id":172801694,"number":106,"title":"Exceptions in _onTimeChange when changing time sliders","user":{"login":"idautocfator","id":12831549,"avatar_url":"https://avatars.githubusercontent.com/u/12831549?v=3","gravatar_id":"","url":"https://api.github.com/users/idautocfator","html_url":"https://github.com/idautocfator","followers_url":"https://api.github.com/users/idautocfator/followers","following_url":"https://api.github.com/users/idautocfator/following{/other_user}","gists_url":"https://api.github.com/users/idautocfator/gists{/gist_id}","starred_url":"https://api.github.com/users/idautocfator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idautocfator/subscriptions","organizations_url":"https://api.github.com/users/idautocfator/orgs","repos_url":"https://api.github.com/users/idautocfator/repos","events_url":"https://api.github.com/users/idautocfator/events{/privacy}","received_events_url":"https://api.github.com/users/idautocfator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-23T20:42:59Z","updated_at":"2016-08-28T13:27:05Z","closed_at":null,"body":"First I want to say good work on this datetime picker.  I chose it for its light dependencies on other libraries, good feature support and inclusion of keyboard support for accessibility.  \r\n\r\nSpecific config used:\r\n            let config = {\r\n                language: 'app',\r\n                keyboardNav: true,\r\n                toggleSelected: false,\r\n                position: 'bottom left',\r\n                clearButton: true,\r\n                dateFormat: 'mm/dd/yyyy',\r\n                timeFormat: 'hh:ii aa',\r\n                startDate: new Date(this.get('editDateTimeValue')),\r\n                minutesStep: 5,\r\n                autoClose: false,\r\n                timepicker: true\r\n            };\r\n\r\nThe exception is:\r\n    Uncaught TypeError: this._getCell(...).hasClass is not a function\r\nOn line: 1195 of datepicker.js\r\n\r\nThis is only happening if you have a datetime in the input before the datetime picker is used, the date in the input is not in the current month and you open the picker and change the time without choosing a date first.\r\n\r\nIn the _getCell function it checks and uses any previously selected dates and if none exist it then uses the current date which is not in the current view and _getCell does not return a cell and thus .hasClass is undefined.\r\n\r\nOne way to fix this is to add these lines to the Datepicker constructor, on or around current lines 128:\r\n\r\n    this.selectedDates = [new Date(this.currentDate)];     \r\n    this.lastSelectedDate = this.selectedDates[0]; \r\n"},"comment":{"url":"https://api.github.com/repos/t1m0n/air-datepicker/issues/comments/242974816","html_url":"https://github.com/t1m0n/air-datepicker/issues/106#issuecomment-242974816","issue_url":"https://api.github.com/repos/t1m0n/air-datepicker/issues/106","id":242974816,"user":{"login":"t1m0n","id":1918251,"avatar_url":"https://avatars.githubusercontent.com/u/1918251?v=3","gravatar_id":"","url":"https://api.github.com/users/t1m0n","html_url":"https://github.com/t1m0n","followers_url":"https://api.github.com/users/t1m0n/followers","following_url":"https://api.github.com/users/t1m0n/following{/other_user}","gists_url":"https://api.github.com/users/t1m0n/gists{/gist_id}","starred_url":"https://api.github.com/users/t1m0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t1m0n/subscriptions","organizations_url":"https://api.github.com/users/t1m0n/orgs","repos_url":"https://api.github.com/users/t1m0n/repos","events_url":"https://api.github.com/users/t1m0n/events{/privacy}","received_events_url":"https://api.github.com/users/t1m0n/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T13:27:05Z","updated_at":"2016-08-28T13:27:05Z","body":"Hello, thanks for you response!\r\nIt should be fixed now in `v2.2.0`"}}
{"actor":{"display_login":"t1m0n"}}