fix: upload file not clickable in firefox (#1552)

This commit is contained in:
crazywoola
2023-11-17 09:57:53 +08:00
committed by GitHub
parent d048557bfe
commit 19fc9e3466
3 changed files with 181 additions and 574 deletions

View File

@@ -85,7 +85,7 @@ const Uploader: FC<UploaderProps> = ({
{children(hovering)}
<input
className={`
absolute block inset-0 opacity-0 text-[0]
absolute block inset-0 opacity-0 text-[0] w-full
${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
`}
onClick={e => (e.target as HTMLInputElement).value = ''}