From 7b40424e63103acab9dd8dd99c1dc9e3fd577142 Mon Sep 17 00:00:00 2001 From: tienifr Date: Mon, 15 Jan 2024 14:38:00 +0700 Subject: [PATCH] lint fix --- src/hooks/useDragAndDrop.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useDragAndDrop.ts b/src/hooks/useDragAndDrop.ts index 6e1121d76ba7..7644d7bba5f0 100644 --- a/src/hooks/useDragAndDrop.ts +++ b/src/hooks/useDragAndDrop.ts @@ -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; } @@ -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; }