Engin.Diri
2016-06-23 15:46:44 +02:00
parent 22307d266f
commit 0e2730a45e

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);