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
Showing only changes of commit 0e2730a45e - Show all commits

View File

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