Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jan 15, 2024
1 parent 719bfcc commit 7b40424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useDragAndDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function useDragAndDrop({dropZone, onDrop = () => {}, shouldAllow
break;
case DRAG_ENTER_EVENT:
handleDragEvent(event);
enterTarget.current=event.target
enterTarget.current = event.target;
if (isDraggingOver) {
return;
}
Expand All @@ -89,7 +89,7 @@ export default function useDragAndDrop({dropZone, onDrop = () => {}, shouldAllow
return;
}
// This is necessary because dragging over children will cause dragleave to execute on the parent.
if (enterTarget.current !== event.target){
if (enterTarget.current !== event.target) {
return;
}

Expand Down

0 comments on commit 7b40424

Please sign in to comment.