From 35e7f4b59c626925d67c23d8df54e5fc96e805a0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 20 May 2025 21:58:58 +0200 Subject: [PATCH] Fix ESLint issues --- virtweb_frontend/src/widgets/forms/FileInput.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); + }} > {