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 ( return (
<div <div
{...getRootProps()} {...getRootProps(
onClick={(e) => { onClick
if (onClick) { ? {
e.stopPropagation(); onClick: (e) => {
onClick(); e.stopPropagation();
} onClick();
}} },
}
: {}
)}
className={dropzoneSurfaceClass({ className={dropzoneSurfaceClass({
variant: variant === 'compact' ? 'compact' : 'default', variant: variant === 'compact' ? 'compact' : 'default',
active: isDragActive, active: isDragActive,