diff --git a/packages/@uppy/dashboard/src/components/AddFiles.tsx b/packages/@uppy/dashboard/src/components/AddFiles.tsx index bbfd6ac95..aa155d4a5 100644 --- a/packages/@uppy/dashboard/src/components/AddFiles.tsx +++ b/packages/@uppy/dashboard/src/components/AddFiles.tsx @@ -106,6 +106,11 @@ class AddFiles extends Component { } private renderMyDeviceAcquirer = () => { + const onClick = + this.props.fileManagerSelectionType === 'folders' + ? this.triggerFolderInputClick + : this.triggerFileInputClick + return (
{ role="tab" tabIndex={0} data-uppy-super-focusable - onClick={this.triggerFileInputClick} + onClick={onClick} >