i have a reactjs component with DayPilotCalendar, and it has eventDeleteHandling as 'Update', whenever i call onEventDelete and then cancel the action with e.preventDefault() , it skips the action and triggering onEventClicked
<DayPilotCalendar
cellHeight="50"
viewType="Day"
startDate={date}
onTimeRangeSelected={async (e) => {
setStartTime(e.start.toString());
setEndTime(e.end.toString());
setOpenDialog(true);
}}
eventDeleteHandling="Update"
onEventClicked={(event) => {
setEventDataOfSchedule(event.e.data);
handleClickOpen();
}}
events={eventData}
onEventDelete={(event) => {
// eslint-disable-next-line no-restricted-globals
if (!confirm("Do you really want to delete this event?")) {
event.preventDefault();
}
}}
onEventDeleted={(event) => {
console.log("Deleted" + event.e.data);
}}
/>