From 4b10d771a4528155e7b8a7b9e980effba5f5c4ee Mon Sep 17 00:00:00 2001 From: Light Date: Fri, 10 May 2019 19:40:11 +0800 Subject: [PATCH] Add a return value resource for function handleDropFromOutside --- src/addons/dragAndDrop/EventContainerWrapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/addons/dragAndDrop/EventContainerWrapper.js b/src/addons/dragAndDrop/EventContainerWrapper.js index 642d36d5e..d92da7f50 100644 --- a/src/addons/dragAndDrop/EventContainerWrapper.js +++ b/src/addons/dragAndDrop/EventContainerWrapper.js @@ -115,7 +115,7 @@ class EventContainerWrapper extends React.Component { } handleDropFromOutside = (point, boundaryBox) => { - const { slotMetrics } = this.props + const { slotMetrics, resource } = this.props let start = slotMetrics.closestSlotFromPoint( { y: point.y, x: point.x }, @@ -126,6 +126,7 @@ class EventContainerWrapper extends React.Component { start, end: slotMetrics.nextSlot(start), allDay: false, + resource, }) }