bug commented #15
@@ -64,15 +64,15 @@ export default function EventCalendar({draggedEvent, setDraggedEvent, removeAfte
|
||||
}
|
||||
|
||||
|
||||
function handleEventClick(clickInfo) {
|
||||
if (
|
||||
confirm(
|
||||
`Are you sure you want to delete the event '${clickInfo.event.title}'`
|
||||
)
|
||||
) {
|
||||
clickInfo.event.remove();
|
||||
}
|
||||
}
|
||||
// function handleEventClick(clickInfo) {
|
||||
// if (
|
||||
// confirm(
|
||||
// `Are you sure you want to delete the event '${clickInfo.event.title}'`
|
||||
// )
|
||||
// ) {
|
||||
// clickInfo.event.remove();
|
||||
// }
|
||||
// }
|
||||
|
||||
function handleEvents(events) {
|
||||
// setCurrentEvents(events);
|
||||
@@ -98,7 +98,7 @@ export default function EventCalendar({draggedEvent, setDraggedEvent, removeAfte
|
||||
events={currentEvents}
|
||||
select={handleDateSelect}
|
||||
eventContent={renderEventContent} // custom render function
|
||||
eventClick={handleEventClick}
|
||||
// eventClick={handleEventClick}
|
||||
eventsSet={handleEvents} // called after events are initialized/added/changed/removed
|
||||
/* you can update a remote database when these fire:
|
||||
eventAdd={function(){}}
|
||||
|
||||
Reference in New Issue
Block a user