Skip to content

Commit

Permalink
inputProps
Browse files Browse the repository at this point in the history
  • Loading branch information
asabhaney committed Mar 10, 2021
1 parent 27a3350 commit 286f666
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ const Files = ({
clickable,
dragActiveClassName,
dragActiveStyle,
onChange,
onDragEnter,
onDragLeave,
onError,
inputProps,
multiple,
maxFiles,
maxFileSize,
minFileSize,
name,
onChange,
onDragEnter,
onDragLeave,
onError,
style
}) => {
const idCounter = useRef(1)
Expand Down Expand Up @@ -161,6 +162,7 @@ const Files = ({
return (
<>
<input
{...inputProps}
ref={inputElement}
type="file"
accept={accepts ? accepts.join() : ''}
Expand Down Expand Up @@ -195,6 +197,7 @@ Files.propTypes = {
className: PropTypes.string,
clickable: PropTypes.bool,
dragActiveClassName: PropTypes.string,
inputProps: PropTypes.object,
multiple: PropTypes.bool,
maxFiles: PropTypes.number,
maxFileSize: PropTypes.number,
Expand All @@ -212,6 +215,7 @@ Files.defaultProps = {
className: undefined,
clickable: true,
dragActiveClassName: undefined,
inputProps: {},
multiple: true,
maxFiles: Infinity,
maxFileSize: Infinity,
Expand Down

0 comments on commit 286f666

Please sign in to comment.