{"action":"closed","issue":{"url":"https://api.github.com/repos/suluke/jquery-date-range-picker/issues/25","repository_url":"https://api.github.com/repos/suluke/jquery-date-range-picker","labels_url":"https://api.github.com/repos/suluke/jquery-date-range-picker/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/suluke/jquery-date-range-picker/issues/25/comments","events_url":"https://api.github.com/repos/suluke/jquery-date-range-picker/issues/25/events","html_url":"https://github.com/suluke/jquery-date-range-picker/issues/25","id":131976471,"number":25,"title":"datepicker-change on clearSelection()","user":{"login":"suluke","id":2334215,"avatar_url":"https://avatars.githubusercontent.com/u/2334215?v=3","gravatar_id":"","url":"https://api.github.com/users/suluke","html_url":"https://github.com/suluke","followers_url":"https://api.github.com/users/suluke/followers","following_url":"https://api.github.com/users/suluke/following{/other_user}","gists_url":"https://api.github.com/users/suluke/gists{/gist_id}","starred_url":"https://api.github.com/users/suluke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suluke/subscriptions","organizations_url":"https://api.github.com/users/suluke/orgs","repos_url":"https://api.github.com/users/suluke/repos","events_url":"https://api.github.com/users/suluke/events{/privacy}","received_events_url":"https://api.github.com/users/suluke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/suluke/jquery-date-range-picker/labels/discussion","name":"discussion","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-07T15:24:07Z","updated_at":"2016-02-07T15:31:59Z","closed_at":"2016-02-07T15:31:59Z","body":"Consider the following use case:\r\nYour date-picker form is validated by an external script, which relies on the `datepicker-change` event to re-validate whenever the date is changed.\r\nIn addition, there is also a clear-the-form button, which of course relies on `clearSelection()` to notify the widget about the reset.\r\nIn response to clicking the button, the `change` event will be fired, and the validator will notify the user of the illegally missing date range - although the form is just in its initial state."}}