From d0c3bd80e6a2401de2848a1e8dbb1b6d832c09ec Mon Sep 17 00:00:00 2001 From: tobi Date: Tue, 6 May 2025 10:01:59 +0200 Subject: [bugfix] Fixes to tablist, fileinput, checkbox --- web/source/settings/components/form/inputs.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'web/source/settings/components') diff --git a/web/source/settings/components/form/inputs.tsx b/web/source/settings/components/form/inputs.tsx index 1495e18f7..654f1a08f 100644 --- a/web/source/settings/components/form/inputs.tsx +++ b/web/source/settings/components/form/inputs.tsx @@ -122,10 +122,6 @@ export function FileInput({ label, field, ...props }: FileInputProps) { const ref = useRef(null); const { onChange, infoComponent } = field; const id = nanoid(); - const onClick = (e) => { - e.preventDefault(); - ref.current?.click(); - }; return (
@@ -133,11 +129,9 @@ export function FileInput({ label, field, ...props }: FileInputProps) { className="label-wrapper" htmlFor={id} tabIndex={0} - onClick={onClick} onKeyDown={(e) => { if (e.key === "Enter") { - e.preventDefault(); - onClick(e); + ref.current?.click(); } }} role="button" -- cgit v1.3