fix: File picker disabled state (#5972)
The filepicker in the disable sate was still able to upload the file. Fixed the issue here.
This commit is contained in:
parent
a8df4ee010
commit
fa76a9a6e9
|
|
@ -17,7 +17,9 @@ class FilePickerComponent extends React.Component<
|
|||
}
|
||||
|
||||
openModal = () => {
|
||||
this.props.uppy.getPlugin("Dashboard").openModal();
|
||||
if (!this.props.isDisabled) {
|
||||
this.props.uppy.getPlugin("Dashboard").openModal();
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user