diff --git a/components/core/Upload/DropIndicator.js b/components/core/Upload/DropIndicator.js index 51c69f9a..2dcd778f 100644 --- a/components/core/Upload/DropIndicator.js +++ b/components/core/Upload/DropIndicator.js @@ -66,8 +66,8 @@ export default function DropIndicator({ data }) { setDroppingState({ totalFilesDropped: files.length || undefined, isDroppingFiles: true }); }; - useEventListener("dragenter", handleDragEnter, []); - useEventListener("dragover", handleDragOver, []); + useEventListener({ type: "dragenter", handler: handleDragEnter }, []); + useEventListener({ type: "dragover", handler: handleDragOver }, []); return (