diff --git a/src/Files.js b/src/Files.js index 5e2a2fd..6cd8178 100644 --- a/src/Files.js +++ b/src/Files.js @@ -234,11 +234,11 @@ class Files extends React.Component { ...rest, onDragOver: e => { e.preventDefault(); - typeof onDragOver === "function" && onDragOver(); + typeof onDragOver === "function" && onDragOver(e); }, onDrop: async e => { e.preventDefault(); - typeof onDrop === "function" && onDrop(); + typeof onDrop === "function" && onDrop(e); this.onDropFilesHandler({ e, onSuccess, onError }); } };