fix(uploader): Fix bug introduced with new document uploader menu where "Click to select" box was not allowing clicks
This commit is contained in:
parent
3258c04ac6
commit
a2f312dc35
1 changed files with 10 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue