File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/elements/content-uploader Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88import * as React from 'react';
99
1010type Props = {
11- handleChange : Function,
11+ onChange : Function,
1212 /** Optional callback to validate files before selection. Return false to prevent selection. */
1313 onSelection?: (files: FileList) => boolean,
1414 inputLabel?: React.Node,
@@ -18,11 +18,12 @@ type Props = {
1818};
1919
2020const UploadInput = ({
21- handleChange ,
21+ onChange ,
2222 inputLabel,
2323 inputLabelClass = '',
2424 isFolderUpload = false,
2525 isMultiple = true,
26+ onSelection,
2627}: Props) => {
2728 const inputRef = React.useRef(null);
2829
@@ -49,7 +50,7 @@ const UploadInput = ({
4950 return;
5051 }
5152 }
52- handleChange (event);
53+ onChange (event);
5354 }}
5455 ref={inputRef}
5556 type="file"
You can’t perform that action at this time.
0 commit comments