fix(a11y): restore native keyboard file selection
This commit is contained in:
@@ -233,10 +233,10 @@ export default function Attachments({ jobId }: { jobId: number }) {
|
||||
<Chip size="small" label={t("attachmentsMaxSize")} variant="outlined" />
|
||||
</Box>
|
||||
</Box>
|
||||
<Button component="label" size="small" variant="outlined" startIcon={<CloudUploadOutlinedIcon />} disabled={uploading}>
|
||||
<Button size="small" variant="outlined" startIcon={<CloudUploadOutlinedIcon />} disabled={uploading} onClick={() => fileInputRef.current?.click()}>
|
||||
{uploading ? t("attachmentsUploading") : t("attachmentsUpload")}
|
||||
<input ref={fileInputRef} type="file" multiple hidden onChange={upload} />
|
||||
</Button>
|
||||
<input ref={fileInputRef} type="file" multiple hidden onChange={upload} />
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
|
||||
Reference in New Issue
Block a user