Skip to content

Commit

Permalink
Update to 5.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgi Peltekov committed Feb 1, 2019
1 parent 9eb1383 commit 4504549
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Change Log
### [5.0.3](https://github.com/georgipeltekov/ngx-file-drop/compare/v5.0.2...v5.0.3) (2019-02-01)
* Fix bug introduced with previous version

### [5.0.2](https://github.com/georgipeltekov/ngx-file-drop/compare/v5.0.1...v5.0.2) (2019-01-23)
* Add browse file button functionality

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-file-drop",
"version": "5.0.2",
"version": "5.0.3",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down
6 changes: 3 additions & 3 deletions src/lib/ngx-drop/file-drop.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ export class FileComponent implements OnDestroy {
this.length = event.dataTransfer.files.length;
this.items = event.dataTransfer.files;
}
this.checkFiles();
this.checkFiles(event);
}

uploadFiles(event: any) {
if (event.srcElement) {
this.items = event.srcElement.files;
this.length = this.items.length;
this.checkFiles();
this.checkFiles(event);
}
}

checkFiles() {
checkFiles(event: any) {
if (!this.globalDisable && !this.disableIf) {

for (let i = 0; i < this.length; i++) {
Expand Down

0 comments on commit 4504549

Please sign in to comment.