Skip to content

Commit

Permalink
feat: change emits to k-dropzone
Browse files Browse the repository at this point in the history
  • Loading branch information
50l3r committed Apr 23, 2024
1 parent d7f07d5 commit 5b23024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/data-entry/k-dropzone/k-dropzone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@
}
const onFileReset = (clearErrors = false, emitDelete = false) => {
const currentUrl = structuredClone(props.modelValue)
file.value = {
name: '',
size: 0,
Expand All @@ -294,7 +296,7 @@
ctx.emit('update:modelValue', '')
if (emitDelete) ctx.emit('delete')
if (emitDelete) ctx.emit('delete', currentUrl)
if (clearErrors) {
errors.value = []
Expand Down

0 comments on commit 5b23024

Please sign in to comment.