Skip to content

Commit ff620e6

Browse files
authored
Merge pull request #200 from mihaimartalogu/master
inputRef should support React.createRef #176
2 parents eefdc07 + 56794f7 commit ff620e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ReactS3Uploader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ var ReactS3Uploader = createReactClass({
3232
server: PropTypes.string,
3333
scrubFilename: PropTypes.func,
3434
s3path: PropTypes.string,
35-
inputRef: PropTypes.func,
35+
inputRef: PropTypes.oneOfType([
36+
PropTypes.object,
37+
PropTypes.func
38+
]),
3639
autoUpload: PropTypes.bool
3740
},
3841

0 commit comments

Comments
 (0)