Skip to content

Commit 3a00b21

Browse files
fix drag/drop event triggers
1 parent 3d1e09e commit 3a00b21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/packages/lowcoder-comps/src/comps/calendarComp/calendarComp.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ let CalendarBasicComp = (function () {
845845
updateEventsOnDragOrResize(eventInfo.event);
846846

847847
if (typeof props.onDropEvent === 'function') {
848-
props.onDropEvent("dropEvent");
848+
props.onDropEvent("drop");
849849
}
850850
}, [props.onDropEvent, updateEventsOnDragOrResize]);
851851

@@ -959,6 +959,11 @@ let CalendarBasicComp = (function () {
959959
props.onEvent("change");
960960
}
961961
}}
962+
eventDragStart={() => {
963+
if (typeof props.onDropEvent === 'function') {
964+
props.onDropEvent("drag");
965+
}
966+
}}
962967
eventDrop={handleDrop}
963968
eventResize={handleResize}
964969
/>

0 commit comments

Comments
 (0)