Skip to content

Commit

Permalink
Fix #3044: FileUpload expose onFileSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Aug 3, 2022
1 parent fce79f8 commit f0314af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/fileupload/FileUpload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export declare class FileUpload extends React.Component<FileUploadProps, any> {
public upload(): void;
public clear(): void;
public formatSize(bytes: number): number;
public onFileSelect(event: FileUploadSelectParams): boid;
public getElement(): HTMLElement;
public getInput(): HTMLInputElement;
}
1 change: 1 addition & 0 deletions components/lib/fileupload/FileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export const FileUpload = React.memo(React.forwardRef((props, ref) => {
upload,
clear,
formatSize,
onFileSelect,
getInput: () => fileInputRef.current,
getContent: () => contentRef.current
}));
Expand Down

0 comments on commit f0314af

Please sign in to comment.