https://github.com/valor-software/ng2-file-upload/issues/272 #273

Merged
ediri merged 3 commits from patch-1 into development 2017-01-17 13:58:44 +00:00
2 changed files with 4 additions and 3 deletions

View File

@@ -21,4 +21,3 @@ webpack.config.js
!*.d.ts !*.d.ts
/components/**/*.ts /components/**/*.ts
!/components/**/*.d.ts !/components/**/*.d.ts

View File

@@ -50,8 +50,10 @@ export class FileDropDirective {
@HostListener('dragleave', ['$event']) @HostListener('dragleave', ['$event'])
public onDragLeave(event:any):any { public onDragLeave(event:any):any {
if (event.currentTarget === (this as any).element[0]) { if ((this as any).element) {
return; if (event.currentTarget === (this as any).element[0]) {
return;
}
} }
this._preventAndStop(event); this._preventAndStop(event);