summaryrefslogtreecommitdiffstats
path: root/web/react/components/setting_picture.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-02 12:57:45 -0700
committerCorey Hulen <corey@hulen.com>2015-09-02 12:57:45 -0700
commitfca2f43ad5c21001b8ae0a25b4f1a700a09ac38f (patch)
tree5db8787a810ccf56b283149c8468b243ab10b6b7 /web/react/components/setting_picture.jsx
parent27970af4bbbb2d358245bfd63e3167ddfa948135 (diff)
parenta020391d93feb93f328cfca4edef6fb8a46cd86c (diff)
downloadchat-fca2f43ad5c21001b8ae0a25b4f1a700a09ac38f.tar.gz
chat-fca2f43ad5c21001b8ae0a25b4f1a700a09ac38f.tar.bz2
chat-fca2f43ad5c21001b8ae0a25b4f1a700a09ac38f.zip
Merge pull request #559 from hmhealey/getdomnode
Replaced broken remaining calls to getDOMNode with React.findDOMNode
Diffstat (limited to 'web/react/components/setting_picture.jsx')
-rw-r--r--web/react/components/setting_picture.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/setting_picture.jsx b/web/react/components/setting_picture.jsx
index eaa839733..33c3b650a 100644
--- a/web/react/components/setting_picture.jsx
+++ b/web/react/components/setting_picture.jsx
@@ -12,7 +12,7 @@ export default class SettingPicture extends React.Component {
if (file) {
var reader = new FileReader();
- var img = this.refs.image.getDOMNode();
+ var img = React.findDOMNode(this.refs.image);
reader.onload = function load(e) {
$(img).attr('src', e.target.result);
};
@@ -128,4 +128,4 @@ SettingPicture.propTypes = {
submit: React.PropTypes.func,
title: React.PropTypes.string,
pictureChange: React.PropTypes.func
-}; \ No newline at end of file
+};