8000 feat(useFileDialog): trigger onChange when reset (#3548) · vueuse/vueuse@7e2da58 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 7e2da58

Browse files
authored
feat(useFileDialog): trigger onChange when reset (#3548)
1 parent e48ca07 commit 7e2da58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/useFileDialog/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ export function useFileDialog(options: UseFileDialogOptions = {}): UseFileDialog
7272

7373
const reset = () => {
7474
files.value = null
75-
if (input)
75+
if (input) {
7676
input.value = ''
77+
trigger(null)
78+
}
7779
}
7880

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

0 commit comments

Comments
 (0)
0