From de9901d941ac256ac9d0763cb3b72fcae979c2bd Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 26 Nov 2026 11:26:35 +0100 Subject: [PATCH] refactor(files): drop the drop zone's noClick option, which is its default Keeps useFileManager within the function length limit now that it names noPaste; react-dropzone's noClick defaults to false, so a click still opens the picker. --- client/src/components/Files/useFileManager.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/components/Files/useFileManager.ts b/client/src/components/Files/useFileManager.ts index ea1317e13..b40afe434 100644 --- a/client/src/components/Files/useFileManager.ts +++ b/client/src/components/Files/useFileManager.ts @@ -124,7 +124,6 @@ export function useFileManager({ files = [], onUpload, onDelete, onUpdate, place toast.error(t('files.uploadErrorSize', { max: maxUploadMb })) } }, - noClick: false, // Pasting is handled once for the whole panel (handlePaste), with the upload // permission check; the zone's own paste upload would send each file twice. noPaste: true,