summaryrefslogtreecommitdiffstats
path: root/web/react/components/new_channel_modal.jsx
diff options
context:
space:
mode:
authorStas Vovk <stas@vovk.me>2015-10-16 14:21:51 +0300
committerStas Vovk <stas@vovk.me>2015-10-16 14:21:51 +0300
commit79fcb9808421dd93342a9538d05dd2259f5dd14b (patch)
tree33a1a865144f280e37fde07a7c91ed8825c53801 /web/react/components/new_channel_modal.jsx
parent2bd81ff379acb347534e4d6a1a27624e0262deb0 (diff)
parent50a8e2bd4fa53c6bb2f12a03237be4fbaf259617 (diff)
downloadchat-79fcb9808421dd93342a9538d05dd2259f5dd14b.tar.gz
chat-79fcb9808421dd93342a9538d05dd2259f5dd14b.tar.bz2
chat-79fcb9808421dd93342a9538d05dd2259f5dd14b.zip
Merge remote-tracking branch 'upstream/master' into PLT-637
Conflicts: web/react/utils/constants.jsx
Diffstat (limited to 'web/react/components/new_channel_modal.jsx')
-rw-r--r--web/react/components/new_channel_modal.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/new_channel_modal.jsx b/web/react/components/new_channel_modal.jsx
index c3d9c046d..4e6280c99 100644
--- a/web/react/components/new_channel_modal.jsx
+++ b/web/react/components/new_channel_modal.jsx
@@ -25,7 +25,7 @@ export default class NewChannelModal extends React.Component {
handleSubmit(e) {
e.preventDefault();
- const displayName = React.findDOMNode(this.refs.display_name).value.trim();
+ const displayName = ReactDOM.findDOMNode(this.refs.display_name).value.trim();
if (displayName.length < 1) {
this.setState({displayNameError: 'This field is required'});
return;
@@ -35,8 +35,8 @@ export default class NewChannelModal extends React.Component {
}
handleChange() {
const newData = {
- displayName: React.findDOMNode(this.refs.display_name).value,
- description: React.findDOMNode(this.refs.channel_desc).value
+ displayName: ReactDOM.findDOMNode(this.refs.display_name).value,
+ description: ReactDOM.findDOMNode(this.refs.channel_desc).value
};
this.props.onDataChanged(newData);
}