@@ -215,6 +215,7 @@ let childrenMap: any = {
215215 updatedEvents : stateComp < JSONObject > ( { } ) ,
216216 insertedEvents : stateComp < JSONObject > ( { } ) ,
217217 deletedEvents : stateComp < JSONObject > ( { } ) ,
218+ selectedEvent : stateComp < JSONObject > ( { } ) ,
218219 inputFormat : withDefault ( StringControl , DATE_TIME_FORMAT ) ,
219220} ;
220221
@@ -999,6 +1000,14 @@ let CalendarBasicComp = (function () {
9991000 const event = events . find (
10001001 ( item : EventInput ) => item . id === info . event . id
10011002 ) ;
1003+ // Find original event from props.events to include all custom fields (e.g., join_url)
1004+ const originalEvent = props . events . find (
1005+ ( item : EventType ) => String ( item . id ) === String ( info . event . id )
1006+ ) ;
1007+ // Update selectedEvent state with all original data
1008+ comp ?. children ?. comp ?. children ?. selectedEvent ?. dispatchChangeValueAction ?.(
1009+ originalEvent || event || { }
1010+ ) ;
10021011 editEvent . current = event ;
10031012 setTimeout ( ( ) => {
10041013 editEvent . current = undefined ;
@@ -1228,6 +1237,14 @@ const TmpCalendarComp = withExposingConfigs(CalendarBasicComp, [
12281237 return input . deletedEvents ;
12291238 } ,
12301239 } ) ,
1240+ depsConfig ( {
1241+ name : "selectedEvent" ,
1242+ desc : trans ( "calendar.selectedEvent" ) ,
1243+ depKeys : [ "selectedEvent" ] ,
1244+ func : ( input : { selectedEvent : any ; } ) => {
1245+ return input . selectedEvent ;
1246+ } ,
1247+ } ) ,
12311248] ) ;
12321249
12331250let CalendarComp = withMethodExposing ( TmpCalendarComp , [
0 commit comments