Merge pull request #1035 from junedkhatri31/master

fix: Double window opening on image selection
This commit is contained in:
Simon Larsen 2023-12-05 12:59:06 +00:00 committed by GitHub
commit eaacaf7489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,7 @@ const FilePicker: FunctionComponent<ComponentProps> = (
const { getRootProps, getInputProps } = useDropzone({
accept: acceptTypes,
multiple: props.isMultiFilePicker,
noClick: true,
onDrop: async (acceptedFiles: Array<File>) => {
setIsLoading(true);
try {