mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
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:
committed by
David Lechner
parent
db2ac5456e
commit
02d7672155
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user