Skip to content

Commit

Permalink
fix(file-list): dispatch change event on removeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Jan 27, 2025
1 parent ce10150 commit 7c33ae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lib/src/form-fields/file-list/file-list.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
dispatch('removed', { url: internalFiles[index].url });
}
internalFiles = internalFiles.filter((i, ind) => index !== ind);
dispatch('change', { unsaved: internalFiles.filter((el) => !el.saved).length });
}
function handleFileInput(e: any) {
Expand Down

0 comments on commit 7c33ae3

Please sign in to comment.