react-dropzone: fix for breaking change in v12

This fixes a breaking change from upgrading to react-dropzone to v12.
This commit is contained in:
David Lechner
2022-02-28 11:01:59 -06:00
committed by David Lechner
parent db2ac5456e
commit 02d7672155
+2
View File
@@ -60,6 +60,8 @@ const OpenFileButton: React.FC<OpenFileButtonProps> = (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) => {