Skip to content

Commit

Permalink
fix(QUpload): use Event
Browse files Browse the repository at this point in the history
  • Loading branch information
ViZhe committed Oct 6, 2022
1 parent 674937b commit ff1db13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qComponents/QUpload/src/QUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export default defineComponent({
processFile(fileList);
};
const handleFileChange = ({ target }: MouseEvent): void => {
const handleFileChange = ({ target }: Event): void => {
const fileList = (target as HTMLInputElement)?.files;
processFile(fileList);
};
Expand Down
2 changes: 1 addition & 1 deletion src/qComponents/QUpload/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface QUploadInstance {
fileInput: Ref<Nullable<HTMLInputElement>>;
classes: ComputedRef<Record<string, boolean>>;
hasValue: ComputedRef<boolean>;
handleFileChange: ({ target }: MouseEvent) => void;
handleFileChange: ({ target }: Event) => void;
processFile: (fileList: Nullable<FileList>) => void;
handleFileDrop: (dropEvent: DragEvent) => void;
handleUploadClick: () => void;
Expand Down

0 comments on commit ff1db13

Please sign in to comment.