Skip to content

Commit

Permalink
Fixed an issue with isOverShallow not working due to a DnD API change (
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdp authored and megamaddu committed Jul 30, 2019
1 parent e2458aa commit 005b4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/React/Basic/ReactDND.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};
Expand Down

0 comments on commit 005b4f2

Please sign in to comment.