diff --git a/src/addons/dragAndDrop/EventWrapper.js b/src/addons/dragAndDrop/EventWrapper.js index a2b57a4a9..540491cf4 100644 --- a/src/addons/dragAndDrop/EventWrapper.js +++ b/src/addons/dragAndDrop/EventWrapper.js @@ -77,7 +77,8 @@ class EventWrapper extends React.Component { className: cn(children.props.className, 'rbc-addons-dnd-drag-preview'), }) - const { draggableAccessor, resizableAccessor, draggable } = this.context + const { draggable } = this.context + const { draggableAccessor, resizableAccessor } = draggable const isDraggable = draggableAccessor ? !!get(event, draggableAccessor)