From 005b4f29dd0fe73035e2a6a8d74c65d0668fa71c Mon Sep 17 00:00:00 2001 From: Robert P Date: Wed, 31 Jul 2019 06:46:50 +0900 Subject: [PATCH] Fixed an issue with isOverShallow not working due to a DnD API change (#4) --- src/React/Basic/ReactDND.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/React/Basic/ReactDND.js b/src/React/Basic/ReactDND.js index cdf2922..7eed98c 100644 --- a/src/React/Basic/ReactDND.js +++ b/src/React/Basic/ReactDND.js @@ -104,7 +104,7 @@ exports.unsafeCreateDropTarget = function(toMaybe, type) { return { canDrop: flags.canDrop ? monitor.canDrop() : toMaybe(null), isOver: monitor.isOver(), - isOverShallow: monitor.isOver(true), + isOverShallow: monitor.isOver({ shallow: true }), dropResult: toMaybe(monitor.getDropResult()), didDrop: monitor.didDrop() };