Skip to content

Commit

Permalink
🐛 fix(file-upload): switch lines (#1236)
Browse files Browse the repository at this point in the history
fix(file-upload): switch lines
  • Loading branch information
hirsch88 authored Dec 14, 2023
1 parent 0135f9e commit 95b8833
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-bobcats-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/design-system-components': patch
---

Trigger the `balFilesAdded` event of the `bal-file-upload` component after files have been added.
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ export class FileUpload implements FormInput<File[]>, BalAriaFormLinking {
}

if (validatedFiles.validFiles.length > 0) {
this.balFilesAdded.emit(validatedFiles.validFiles)
this.files = [...this.files, ...validatedFiles.validFiles]
this.balChange.emit(this.files)
this.balFilesAdded.emit(validatedFiles.validFiles)
}

this.updateFileInput()
Expand Down

0 comments on commit 95b8833

Please sign in to comment.