Skip to content

Commit

Permalink
feat: add resource to handleDropFromOutside (jquense#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
pl2476 authored and jquense committed May 10, 2019
1 parent 5c5fddd commit 2b7ad2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/addons/dragAndDrop/EventContainerWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -126,6 +126,7 @@ class EventContainerWrapper extends React.Component {
start,
end: slotMetrics.nextSlot(start),
allDay: false,
resource,
})
}

Expand Down

0 comments on commit 2b7ad2a

Please sign in to comment.