Skip to content

Commit 005b4f2

Browse files
robertdpmaddie927
authored andcommitted
Fixed an issue with isOverShallow not working due to a DnD API change (#4)
1 parent e2458aa commit 005b4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/React/Basic/ReactDND.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ exports.unsafeCreateDropTarget = function(toMaybe, type) {
104104
return {
105105
canDrop: flags.canDrop ? monitor.canDrop() : toMaybe(null),
106106
isOver: monitor.isOver(),
107-
isOverShallow: monitor.isOver(true),
107+
isOverShallow: monitor.isOver({ shallow: true }),
108108
dropResult: toMaybe(monitor.getDropResult()),
109109
didDrop: monitor.didDrop()
110110
};

0 commit comments

Comments
 (0)