Skip to content

Commit

Permalink
feat(useFileDialog): trigger onChange when reset (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctor-wu committed Dec 4, 2023
1 parent e48ca07 commit 7e2da58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/useFileDialog/index.ts
Expand Up @@ -72,8 +72,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 7e2da58

Please sign in to comment.