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 (
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue