Merge branch 'ediri-patch-1' into development

This commit is contained in:
Dmitriy Shekhovtsov
2017-01-17 15:57:55 +02:00
2 changed files with 5 additions and 3 deletions

View File

@@ -51,9 +51,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);