mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
fix: support folder selection in Dashboard by dynamically setting click handler based on fileManagerSelectionType
This commit is contained in:
parent
dabd878b87
commit
79ed5ac02c
1 changed files with 6 additions and 1 deletions
|
|
@ -106,6 +106,11 @@ class AddFiles extends Component<AddFilesProps> {
|
|||
}
|
||||
|
||||
private renderMyDeviceAcquirer = () => {
|
||||
const onClick =
|
||||
this.props.fileManagerSelectionType === 'folders'
|
||||
? this.triggerFolderInputClick
|
||||
: this.triggerFileInputClick
|
||||
|
||||
return (
|
||||
<div
|
||||
className="uppy-DashboardTab"
|
||||
|
|
@ -118,7 +123,7 @@ class AddFiles extends Component<AddFilesProps> {
|
|||
role="tab"
|
||||
tabIndex={0}
|
||||
data-uppy-super-focusable
|
||||
onClick={this.triggerFileInputClick}
|
||||
onClick={onClick}
|
||||
>
|
||||
<div className="uppy-DashboardTab-inner">
|
||||
<svg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue