Skip to content

Commit

Permalink
Fix InvisibleDropArea overlay disappearing when hovering a nested ele…
Browse files Browse the repository at this point in the history
…ment (again).
  • Loading branch information
leMaik committed Aug 16, 2019
1 parent 5c0bcc0 commit c0e1372
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/InvisibleDropArea/InvisibleDropArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ const InvisibleDropArea = React.forwardRef(function InvisibleDropArea (props, re
setDragOver(true)
}

const handleDragLeave = () => {
setDragOver(false)
const handleDragLeave = (e) => {
if (e.target === e.currentTarget) {
setDragOver(false)
}
}

const handleSelectFiles = (files) => {
Expand Down

0 comments on commit c0e1372

Please sign in to comment.