{"action":"created","issue":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/issues/350","repository_url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler","labels_url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/issues/350/comments","events_url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/issues/350/events","html_url":"https://github.com/fullcalendar/fullcalendar-scheduler/issues/350","id":259533159,"number":350,"title":"'updateEvent' makes events disappear","user":{"login":"wackawacka","id":9885641,"avatar_url":"https://avatars2.githubusercontent.com/u/9885641?v=4","gravatar_id":"","url":"https://api.github.com/users/wackawacka","html_url":"https://github.com/wackawacka","followers_url":"https://api.github.com/users/wackawacka/followers","following_url":"https://api.github.com/users/wackawacka/following{/other_user}","gists_url":"https://api.github.com/users/wackawacka/gists{/gist_id}","starred_url":"https://api.github.com/users/wackawacka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wackawacka/subscriptions","organizations_url":"https://api.github.com/users/wackawacka/orgs","repos_url":"https://api.github.com/users/wackawacka/repos","events_url":"https://api.github.com/users/wackawacka/events{/privacy}","received_events_url":"https://api.github.com/users/wackawacka/received_events","type":"User","site_admin":false},"labels":[{"id":271386146,"url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/labels/Confirmed","name":"Confirmed","color":"F4CCCC","default":false},{"id":391776168,"url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/labels/Model","name":"Model","color":"741B47","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/milestones/14","html_url":"https://github.com/fullcalendar/fullcalendar-scheduler/milestone/14","labels_url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/milestones/14/labels","id":2794157,"number":14,"title":"next-bugfix-release","description":"","creator":{"login":"arshaw","id":56520,"avatar_url":"https://avatars2.githubusercontent.com/u/56520?v=4","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},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2017-09-26T08:52:08Z","updated_at":"2017-10-05T20:08:45Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-09-21T15:16:14Z","updated_at":"2017-10-05T20:09:00Z","closed_at":"2017-10-05T20:08:45Z","author_association":"NONE","body":"Simply calling updateEvent when viewing in resource/timeline view makes the event disappear\r\nhere is the simplest snippet of code: https://codepen.io/anon/pen/LzRjMv?editors=0010\r\n\r\nhere is a paste of the simple code:\r\n$('#calendar').fullCalendar({\r\n  eventClick: function(event, element) {\r\n    event.title = \"CLICKED!\";\r\n    $('#calendar').fullCalendar('updateEvent', event);\r\n  },\r\n  defaultView: 'timelineDay',\r\n  defaultDate: '2017-05-04',\r\n  resources: [\r\n    { id: 'a', title: 'Auditorium A' },\r\n    { id: 'b', title: 'Auditorium B', eventColor: 'green' },\r\n    { id: 'c', title: 'Auditorium C', eventColor: 'orange' }\r\n  ],\r\n  events: [{ id: '1', resourceIds: ['b', 'c'], start: '2017-05-04T02:00:00', end: '2017-05-04T07:00:00', title: 'event 1' }]\r\n});\r\n\r\nbut you dont have to update the title or anything - as soon as you call updateEvent, the event just disappears.\r\n\r\nit seems to be because any custom properties are removed - which seems to include resourceIds\r\nif you do a clientEvents with event.id - the resourceIds is null\r\n\r\nIn the mean time, if anyone else is having trouble with what seems like could be a common issue - I've done a workaround - but I think we can agree its not a desirable one: https://codepen.io/anon/pen/NaRzpw?editors=0011\r\n\r\nCheers,\r\nCarl."},"comment":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/issues/comments/334577902","html_url":"https://github.com/fullcalendar/fullcalendar-scheduler/issues/350#issuecomment-334577902","issue_url":"https://api.github.com/repos/fullcalendar/fullcalendar-scheduler/issues/350","id":334577902,"user":{"login":"arshaw","id":56520,"avatar_url":"https://avatars2.githubusercontent.com/u/56520?v=4","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":"2017-10-05T20:09:00Z","updated_at":"2017-10-05T20:09:00Z","author_association":"CONTRIBUTOR","body":"queued for release."}}
{"actor":{"display_login":"arshaw"}}