Merge branch 'patch-1' of git://github.com/ediri/ng2-file-upload into ediri-patch-1
Conflicts: .npmignore
This commit is contained in:
@@ -24,4 +24,4 @@ webpack.config.js
|
||||
|
||||
# AoT generated files
|
||||
factories
|
||||
/**/*.ngfactory.ts
|
||||
/**/*.ngfactory.ts
|
||||
@@ -51,8 +51,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);
|
||||
|
||||
Reference in New Issue
Block a user