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,9 +50,11 @@ export class FileDropDirective {
@HostListener('dragleave', ['$event']) @HostListener('dragleave', ['$event'])
public onDragLeave(event:any):any { public onDragLeave(event:any):any {
if ((this as any).element) {
if (event.currentTarget === (this as any).element[0]) { if (event.currentTarget === (this as any).element[0]) {
return; return;
} }
}
this._preventAndStop(event); this._preventAndStop(event);
this.fileOver.emit(false); this.fileOver.emit(false);