This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user