Skip to content

Commit

Permalink
fix: Fire file not over event on file drop (bleenco#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjob authored and jkuri committed Jan 8, 2017
1 parent d2f08cf commit 7857213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class NgFileDropDirective implements OnChanges, OnInit {
this.el.nativeElement.addEventListener('drop', (e: any) => {
e.stopPropagation();
e.preventDefault();

this.onFileOver.emit(false);
this.files = Array.from(e.dataTransfer.files);
if (this.files.length) {
this.uploader.addFilesToQueue(this.files);
Expand Down

0 comments on commit 7857213

Please sign in to comment.