fix :: filepicker allowing all types even after providing accepted file type (#6161)

This commit is contained in:
Kiran Ashok 2023-04-27 14:25:21 +05:30 committed by GitHub
parent 0a366f00df
commit da176d922e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ export const FilePicker = ({
const { getRootProps, getInputProps, isDragActive, isDragAccept, isDragReject, acceptedFiles, fileRejections } =
useDropzone({
accept: parsedFileType,
accept: { parsedFileType: [parsedFileType] },
noClick: !parsedEnablePicker || disablePicker,
noDrag: !parsedEnableDropzone || disablePicker,
noKeyboard: true,