From 72ade144e5d44f0541ad622756508c1a0d3848e0 Mon Sep 17 00:00:00 2001 From: Juned Khatri Date: Tue, 5 Dec 2023 00:55:25 +0530 Subject: [PATCH] fix: Double window opening on image selection --- CommonUI/src/Components/FilePicker/FilePicker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/CommonUI/src/Components/FilePicker/FilePicker.tsx b/CommonUI/src/Components/FilePicker/FilePicker.tsx index 3743b296c7..bbe247fbac 100644 --- a/CommonUI/src/Components/FilePicker/FilePicker.tsx +++ b/CommonUI/src/Components/FilePicker/FilePicker.tsx @@ -84,6 +84,7 @@ const FilePicker: FunctionComponent = ( const { getRootProps, getInputProps } = useDropzone({ accept: acceptTypes, multiple: props.isMultiFilePicker, + noClick: true, onDrop: async (acceptedFiles: Array) => { setIsLoading(true); try {