fix(uploader): Fix bug introduced with new document uploader menu where "Click to select" box was not allowing clicks

This commit is contained in:
Richard R 2026-06-10 14:34:00 -06:00
parent 3258c04ac6
commit a2f312dc35

View file

@ -133,13 +133,16 @@ export function DocumentUploader({
return (
<div
{...getRootProps()}
onClick={(e) => {
if (onClick) {
e.stopPropagation();
onClick();
}
}}
{...getRootProps(
onClick
? {
onClick: (e) => {
e.stopPropagation();
onClick();
},
}
: {}
)}
className={dropzoneSurfaceClass({
variant: variant === 'compact' ? 'compact' : 'default',
active: isDragActive,