Skip to content

Commit

Permalink
[fix-6315]: Add dummy value to file input (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens authored Dec 3, 2024
1 parent cfa4dd6 commit ae9c8c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/FileInput/FileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ const FileInput: FunctionComponent<FileInputProps> = ({
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
Expand Down

0 comments on commit ae9c8c6

Please sign in to comment.