diff --git a/virtweb_frontend/src/widgets/forms/FileInput.tsx b/virtweb_frontend/src/widgets/forms/FileInput.tsx index 9e691ae..6706b3c 100644 --- a/virtweb_frontend/src/widgets/forms/FileInput.tsx +++ b/virtweb_frontend/src/widgets/forms/FileInput.tsx @@ -26,7 +26,7 @@ export function FileInput( onClick={() => fileInput.current?.click()} {...p} value={""} - onChange={() => {}} + onChange={console.log} type="file" slotProps={{ input: { @@ -44,7 +44,9 @@ export function FileInput( {filesize(p.value.size)} e.stopPropagation()} + onClick={(e) => { + e.stopPropagation(); + }} > {