Skip to content

Commit 56794f7

Browse files
inputRef should support React.createRef odysseyscience#176
1 parent e372cf5 commit 56794f7

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)