Skip to content

Commit

Permalink
Fix #43
Browse files Browse the repository at this point in the history
Issue: missing a "...".

Improved code readability by moving the function call to a variable.
  • Loading branch information
qgustavor committed Jun 4, 2024
1 parent 848b5f6 commit cf18298
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/FileUploaderDropContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@
on:drop|preventDefault|stopPropagation="{({ dataTransfer }) => {
if (!disabled) {
over = false;
files = [...files, validateFiles([...dataTransfer.files])];
dispatch('add', files);
const validFiles = validateFiles([...dataTransfer.files])
files = [...files, ...validFiles];
dispatch('add', validFiles);
dispatch('change', files);
}
}}"
Expand Down

0 comments on commit cf18298

Please sign in to comment.