I am trying to implement delete of event. Now, when i click delete, it deletes the event which is expected, but when backend gives some kind of error and not delete it from backend, then also it gets delete.
onEventDelete : args => {
if (!confirm("Do you really want to delete this event?")) {
args.preventDefault();
}
console.log("onEventDelete");
console.log(args);
},
onEventDeleted : args => {
// API call to delete the event on the server side
// ...
console.log(args);
console.log("done");
},
calendar.eventDeleteHandling = "Update";
I have no backend delete implementation, still it gets deleted. I find the event when i load, but the issue is it shouldn’t be deleted.