diff --git a/package.json b/package.json index d55cf608..c55bd234 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ngx-uploader", "description": "Angular File Uploader", - "version": "2.2.3", + "version": "2.2.4", "license": "MIT", "main": "bundle/ngx-uploader.umd.js", "module": "ngx-uploader.js", diff --git a/src/directives/ng-file-drop.ts b/src/directives/ng-file-drop.ts index 59251812..37912aed 100644 --- a/src/directives/ng-file-drop.ts +++ b/src/directives/ng-file-drop.ts @@ -85,7 +85,7 @@ export class NgFileDropDirective implements OnChanges, OnInit { this.el.nativeElement.addEventListener('dragover', this.stopEvent, false); } - @HostListener('drop', ['$event']) onDrop(e: DragEvent): void { + @HostListener('drop', ['$event']) onDrop(e: any): void { this.onFileOver.emit(false); this.files = Array.from(e.dataTransfer.files); if (!this.files || !this.files.length) { @@ -143,7 +143,7 @@ export class NgFileDropDirective implements OnChanges, OnInit { this.onFileOver.emit(false); } - private stopEvent(e: DragEvent): void { + private stopEvent(e: any): void { e.stopPropagation(); e.preventDefault(); }