fix: bind handleUpload to current instance
This commit is contained in:
parent
2402d3e076
commit
7779f794e4
|
@ -19,7 +19,7 @@ export default class UppyFileUpload extends BasePlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
this.uppy.addUploader(this.handleUpload);
|
this.uppy.addUploader(this.handleUpload.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
private async handleUpload(fileIDs: string[]) {
|
private async handleUpload(fileIDs: string[]) {
|
||||||
|
|
Loading…
Reference in New Issue