Skip to content

Commit

Permalink
feat(useFileDialog): trigger onChange when reset
Browse files Browse the repository at this point in the history
fix #3545
  • Loading branch information
Doctor-wu committed Nov 14, 2023
1 parent bacf402 commit aa12913
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/useFileDialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ export function useFileDialog(options: UseFileDialogOptions = {}): UseFileDialog

const reset = () => {
files.value = null
if (input)
if (input) {
input.value = ''
trigger(null)
}
}

const open = (localOptions?: Partial<UseFileDialogOptions>) => {
Expand Down

0 comments on commit aa12913

Please sign in to comment.