Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ let childrenMap: any = {
updatedEvents: stateComp<JSONObject>({}),
insertedEvents: stateComp<JSONObject>({}),
deletedEvents: stateComp<JSONObject>({}),
selectedEvent: stateComp<JSONObject>({}),
inputFormat: withDefault(StringControl, DATE_TIME_FORMAT),
};

Expand Down Expand Up @@ -999,6 +1000,14 @@ let CalendarBasicComp = (function () {
const event = events.find(
(item: EventInput) => item.id === info.event.id
);
// Find original event from props.events to include all custom fields (e.g., join_url)
const originalEvent = props.events.find(
(item: EventType) => String(item.id) === String(info.event.id)
);
// Update selectedEvent state with all original data
comp?.children?.comp?.children?.selectedEvent?.dispatchChangeValueAction?.(
originalEvent || event || {}
);
editEvent.current = event;
setTimeout(() => {
editEvent.current = undefined;
Expand Down Expand Up @@ -1228,6 +1237,14 @@ const TmpCalendarComp = withExposingConfigs(CalendarBasicComp, [
return input.deletedEvents;
},
}),
depsConfig({
name: "selectedEvent",
desc: trans("calendar.selectedEvent"),
depKeys: ["selectedEvent"],
func: (input: { selectedEvent: any; }) => {
return input.selectedEvent;
},
}),
]);

let CalendarComp = withMethodExposing(TmpCalendarComp, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ export const en = {
deletedEvents : "List of deleted events",
updatedEvents : "List of updated events",
insertedEvents : "List of inserted events",
selectedEvent : "The currently selected/clicked event",
editable: "Editable",
license: "Licence Key",
licenseTooltip: "Get your licence key from https://fullcalendar.io/purchase to enable premium views like Resource Timeline and Resource Grid.",
Expand Down
Loading