We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2788a03 + a4c531c commit 1d40cbdCopy full SHA for 1d40cbd
src/file-uploader/file-uploader.component.ts
@@ -144,6 +144,9 @@ export class FileUploader implements OnInit {
144
145
onFilesAdded() {
146
const files = this.fileInput.nativeElement.files;
147
+ if (!this.multiple) {
148
+ this.files.clear();
149
+ }
150
for (let file of files) {
151
const fileItem: FileItem = {
152
uploaded: false,
src/file-uploader/file-uploader.stories.ts
@@ -35,7 +35,7 @@ class FileUploaderStory {
35
static notificationCount = 0;
36
37
@Input() notificationId = `notification-${FileUploaderStory.notificationCount}`;
38
- @Input() files: any;
+ @Input() files = new Set();
39
@Input() title;
40
@Input() description;
41
@Input() buttonText;
0 commit comments