From ae9c8c6a997b8dddb5719e5277cf2639142b858c Mon Sep 17 00:00:00 2001 From: Aram <37216945+alimpens@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:37:45 +0100 Subject: [PATCH] [fix-6315]: Add dummy value to file input (#3037) --- src/components/FileInput/FileInput.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/FileInput/FileInput.tsx b/src/components/FileInput/FileInput.tsx index 5972ddb985..dcd215e428 100644 --- a/src/components/FileInput/FileInput.tsx +++ b/src/components/FileInput/FileInput.tsx @@ -134,7 +134,11 @@ const FileInput: FunctionComponent = ({ type="file" id="fileUpload" data-testid="file-input-upload" - accept={`${allowedFileTypes.join(',')};capture=camera`} + accept={`${allowedFileTypes.join( + ',' + )},android/force-camera-workaround`} + // android/force-camera-workaround is a dummy value to allow users to open their camera on Chrome on Android devices. + // It can be removed when Chrome fixes this bug. onChange={addFiles} name={name} multiple