From 0e2730a45ead783ab22809336b82802ff4657bea Mon Sep 17 00:00:00 2001 From: "Engin.Diri" Date: Thu, 23 Jun 2016 15:46:44 +0200 Subject: [PATCH 1/3] https://github.com/valor-software/ng2-file-upload/issues/272 --- components/file-upload/file-drop.directive.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/file-upload/file-drop.directive.ts b/components/file-upload/file-drop.directive.ts index a918adf..1492f31 100644 --- a/components/file-upload/file-drop.directive.ts +++ b/components/file-upload/file-drop.directive.ts @@ -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); From 98635077990d874928bf85cd11194c6c3c44a628 Mon Sep 17 00:00:00 2001 From: "Engin.Diri" Date: Fri, 29 Jul 2016 13:33:29 +0200 Subject: [PATCH 2/3] https://github.com/valor-software/ng2-file-upload/issues/272 --- .npmignore | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.npmignore b/.npmignore index 8f189f2..6b9078e 100644 --- a/.npmignore +++ b/.npmignore @@ -15,10 +15,3 @@ demo demo-build webpack.config.js -#typescript sources -*.ts -*.js.map -!*.d.ts -/components/**/*.ts -!/components/**/*.d.ts - From 63bf587d80f3afe1e9c55436db5dc86afc28c2ae Mon Sep 17 00:00:00 2001 From: "Engin.Diri" Date: Wed, 19 Oct 2016 16:30:02 +0200 Subject: [PATCH 3/3] https://github.com/valor-software/ng2-file-upload/issues/272 --- .npmignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.npmignore b/.npmignore index 6b9078e..2e0d9ad 100644 --- a/.npmignore +++ b/.npmignore @@ -15,3 +15,9 @@ demo demo-build webpack.config.js +#typescript sources +*.ts +*.js.map +!*.d.ts +/components/**/*.ts +!/components/**/*.d.ts