From 02d767215541105224ae807c2fa4295f6e11f3d4 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 28 Feb 2022 10:56:13 -0600 Subject: [PATCH] react-dropzone: fix for breaking change in v12 This fixes a breaking change from upgrading to react-dropzone to v12. --- src/toolbar/OpenFileButton.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/toolbar/OpenFileButton.tsx b/src/toolbar/OpenFileButton.tsx index c3a7db3f..680fb837 100644 --- a/src/toolbar/OpenFileButton.tsx +++ b/src/toolbar/OpenFileButton.tsx @@ -60,6 +60,8 @@ const OpenFileButton: React.FC = (props) => { const { getRootProps, getInputProps } = useDropzone({ accept: props.fileExtension, + // using File System Access API is blocked by https://github.com/react-dropzone/react-dropzone/issues/1141 + useFsAccessApi: false, multiple: false, noClick: props.onClick !== undefined, onDropAccepted: (acceptedFiles) => {