Skip to content

Commit

Permalink
Empty input value after preparing files list
Browse files Browse the repository at this point in the history
  • Loading branch information
progtarek committed May 2, 2020
1 parent aec1638 commit 735a7f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, ViewChild, ElementRef } from "@angular/core";
styleUrls: ["./app.component.scss"],
})
export class AppComponent {
@ViewChild("fileDropRef", { static: false }) fileDropEl: ElementRef;
files: any[] = [];

/**
Expand Down Expand Up @@ -63,6 +64,7 @@ export class AppComponent {
item.progress = 0;
this.files.push(item);
}
this.fileDropEl.nativeElement.value = "";
this.uploadFilesSimulator(0);
}

Expand Down

0 comments on commit 735a7f1

Please sign in to comment.