From a2f312dc35c4fc2cb547ef4f153156dc48296df5 Mon Sep 17 00:00:00 2001 From: Richard R Date: Wed, 10 Jun 2026 14:34:00 -0600 Subject: [PATCH] fix(uploader): Fix bug introduced with new document uploader menu where "Click to select" box was not allowing clicks --- src/components/documents/DocumentUploader.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/documents/DocumentUploader.tsx b/src/components/documents/DocumentUploader.tsx index 21950d6..7f8ff3a 100644 --- a/src/components/documents/DocumentUploader.tsx +++ b/src/components/documents/DocumentUploader.tsx @@ -133,13 +133,16 @@ export function DocumentUploader({ return (
{ - if (onClick) { - e.stopPropagation(); - onClick(); - } - }} + {...getRootProps( + onClick + ? { + onClick: (e) => { + e.stopPropagation(); + onClick(); + }, + } + : {} + )} className={dropzoneSurfaceClass({ variant: variant === 'compact' ? 'compact' : 'default', active: isDragActive,