From ee26d42553e7ab7a6ecb18b6f360cb60274dbebb Mon Sep 17 00:00:00 2001 From: Rui Saraiva Date: Sat, 12 Sep 2020 08:25:07 +0100 Subject: [PATCH] fix(dropzone): allow only single file drag and drop --- components/drag-and-drop/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/drag-and-drop/index.tsx b/components/drag-and-drop/index.tsx index 646bc52..90aad9f 100644 --- a/components/drag-and-drop/index.tsx +++ b/components/drag-and-drop/index.tsx @@ -182,6 +182,7 @@ const DragAndDrop = ({ onFile, onGenerate, onError }: DragAndDropProps) => { onDrop, accept: Object.keys(ACCEPT_MIME_TYPES), maxSize: ONE_MB, + multiple: false, }) const onCopy = () => {