Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't require js for triggering file select on infractions modal
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 7e8fb12 commit e3b90ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/NewInfractionModal.tsx
Expand Up @@ -128,7 +128,9 @@ export default function (props: { isOpen: boolean; onClose: () => void }) {
<br />
<Text>Evidence</Text>
<Button
onClick={() => document.getElementById("evidence")?.click()}
as="label"
// @ts-expect-error
for="evidence"
mr="8px"
>
Select Files
Expand Down

0 comments on commit e3b90ac

Please sign in to comment.