{"action":"created","issue":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2899","labels_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2899/labels{/name}","comments_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2899/comments","events_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2899/events","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2899","id":111497567,"number":2899,"title":"dayClick Clears Day Selection on Calendar","user":{"login":"Scheerc","id":15131781,"avatar_url":"https://avatars.githubusercontent.com/u/15131781?v=3","gravatar_id":"","url":"https://api.github.com/users/Scheerc","html_url":"https://github.com/Scheerc","followers_url":"https://api.github.com/users/Scheerc/followers","following_url":"https://api.github.com/users/Scheerc/following{/other_user}","gists_url":"https://api.github.com/users/Scheerc/gists{/gist_id}","starred_url":"https://api.github.com/users/Scheerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scheerc/subscriptions","organizations_url":"https://api.github.com/users/Scheerc/orgs","repos_url":"https://api.github.com/users/Scheerc/repos","events_url":"https://api.github.com/users/Scheerc/events{/privacy}","received_events_url":"https://api.github.com/users/Scheerc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-14T21:29:26Z","updated_at":"2015-10-19T00:05:19Z","closed_at":null,"body":"My implementation of fullcalendar involves programmatically selecting a day after a dayClick event. This works as expected when selecting different acceptable days. However, the functionality breaks down when clicking on \"unacceptable\" days where the select is not called.\r\n\r\nhttp://jsfiddle.net/vhrjat4j/1/\r\n\r\nIn the fiddle above, weekends are designated as \"unacceptable days\". If you create a selection by clicking on a week day, and then click on a weekend day, you will see that the selection is cleared even though neither select or unselect is called.\r\n\r\nI've also added some alerts in the fiddle so that we can see the timing of the selection clear. If you click on a date (any date), you will see that your previous selection is cleared before the dayClick callback is triggered. This is why I believe it is the dayClick event that is causing the issue."},"comment":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/comments/149065844","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2899#issuecomment-149065844","issue_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2899","id":149065844,"user":{"login":"arshaw","id":56520,"avatar_url":"https://avatars.githubusercontent.com/u/56520?v=3","gravatar_id":"","url":"https://api.github.com/users/arshaw","html_url":"https://github.com/arshaw","followers_url":"https://api.github.com/users/arshaw/followers","following_url":"https://api.github.com/users/arshaw/following{/other_user}","gists_url":"https://api.github.com/users/arshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/arshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arshaw/subscriptions","organizations_url":"https://api.github.com/users/arshaw/orgs","repos_url":"https://api.github.com/users/arshaw/repos","events_url":"https://api.github.com/users/arshaw/events{/privacy}","received_events_url":"https://api.github.com/users/arshaw/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T00:05:19Z","updated_at":"2015-10-19T00:05:19Z","body":"i have recreated and understand. the bug is that the calendar is preparing for another selection even though `selectable:true` has not been specified, so it unnecessarily clears the current selection on mousedown. a bug"}}