Skip to content

Commit 2b7ad2a

Browse files
pl2476jquense
authored andcommitted
feat: add resource to handleDropFromOutside (jquense#1319)
1 parent 5c5fddd commit 2b7ad2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/addons/dragAndDrop/EventContainerWrapper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class EventContainerWrapper extends React.Component {
115115
}
116116

117117
handleDropFromOutside = (point, boundaryBox) => {
118-
const { slotMetrics } = this.props
118+
const { slotMetrics, resource } = this.props
119119

120120
let start = slotMetrics.closestSlotFromPoint(
121121
{ y: point.y, x: point.x },
@@ -126,6 +126,7 @@ class EventContainerWrapper extends React.Component {
126126
start,
127127
end: slotMetrics.nextSlot(start),
128128
allDay: false,
129+
resource,
129130
})
130131
}
131132

0 commit comments

Comments
 (0)