summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_upload.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/file_upload.jsx')
-rw-r--r--web/react/components/file_upload.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/file_upload.jsx b/web/react/components/file_upload.jsx
index e947fc50c..8854a54df 100644
--- a/web/react/components/file_upload.jsx
+++ b/web/react/components/file_upload.jsx
@@ -86,7 +86,7 @@ export default class FileUpload extends React.Component {
}
handleChange() {
- var element = $(React.findDOMNode(this.refs.fileInput));
+ var element = $(ReactDOM.findDOMNode(this.refs.fileInput));
this.uploadFiles(element.prop('files'));
@@ -115,7 +115,7 @@ export default class FileUpload extends React.Component {
}
componentDidMount() {
- var inputDiv = React.findDOMNode(this.refs.input);
+ var inputDiv = ReactDOM.findDOMNode(this.refs.input);
var self = this;
if (this.props.postType === 'post') {