Skip to content

Commit a909099

Browse files
Fix for SVY-20682
Cumulative leak due to listeners added to the window object that were not removed when the comp. was destroyed.
1 parent c8914ba commit a909099

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

components/projects/servoyextracomponents/src/multifileupload/multifileupload.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ export class ServoyExtraMultiFileUpload extends ServoyBaseComponent<HTMLDivEleme
265265
this.loadUppyLocale();
266266
this.cdRef.detectChanges();
267267
}
268+
269+
ngOnDestroy() {
270+
super.ngOnDestroy();
271+
this.uppy.destroy();
272+
}
268273

269274
openModal(): void {
270275
(this.uppy.getPlugin('angular:Dashboard') as Dashboard<any,any>).openModal();

0 commit comments

Comments
 (0)