From 1889a51d4616194acd1bcade83f95c4c157180ee Mon Sep 17 00:00:00 2001 From: Adam Recvlohe Date: Mon, 29 Oct 2018 15:02:44 -0400 Subject: [PATCH] fix: reference to draggable/resizable Accessor (#1070) --- src/addons/dragAndDrop/EventWrapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)