Skip to content

Commit

Permalink
fix(useFileDialog): check if input value exists before trigger onChan…
Browse files Browse the repository at this point in the history
…ge (#3972)
  • Loading branch information
jinkaiqin committed May 27, 2024
1 parent 2ccbd3d commit 424a204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useFileDialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function useFileDialog(options: UseFileDialogOptions = {}): UseFileDialog

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

0 comments on commit 424a204

Please sign in to comment.