summaryrefslogtreecommitdiffstats
path: root/web/react/components/channel_notifications.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-09-02 14:26:01 -0400
committerJoramWilander <jwawilander@gmail.com>2015-09-02 14:26:01 -0400
commitb9e16f41f161c772e1701c4ac47ca5319c706912 (patch)
tree0a03bc0d32dddbd7ceb192199b06013d434ec775 /web/react/components/channel_notifications.jsx
parent86b474666ca0f25af2ddb808fc618517292e865a (diff)
downloadchat-b9e16f41f161c772e1701c4ac47ca5319c706912.tar.gz
chat-b9e16f41f161c772e1701c4ac47ca5319c706912.tar.bz2
chat-b9e16f41f161c772e1701c4ac47ca5319c706912.zip
Remove use of getDOMNode from multiple files.
Diffstat (limited to 'web/react/components/channel_notifications.jsx')
-rw-r--r--web/react/components/channel_notifications.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/channel_notifications.jsx b/web/react/components/channel_notifications.jsx
index 6b16e362c..173646597 100644
--- a/web/react/components/channel_notifications.jsx
+++ b/web/react/components/channel_notifications.jsx
@@ -26,7 +26,7 @@ export default class ChannelNotifications extends React.Component {
componentDidMount() {
ChannelStore.addChangeListener(this.onListenerChange);
- $(this.refs.modal.getDOMNode()).on('show.bs.modal', function showModal(e) {
+ $(React.findDOMNode(this.refs.modal)).on('show.bs.modal', function showModal(e) {
var button = e.relatedTarget;
var channelId = button.getAttribute('data-channelid');
@@ -95,11 +95,11 @@ export default class ChannelNotifications extends React.Component {
}
handleRadioClick(notifyLevel) {
this.setState({notifyLevel: notifyLevel, quietMode: false});
- this.refs.modal.getDOMNode().focus();
+ React.findDOMNode(this.refs.modal).focus();
}
handleQuietToggle(quietMode) {
this.setState({notifyLevel: 'none', quietMode: quietMode});
- this.refs.modal.getDOMNode().focus();
+ React.findDOMNode(this.refs.modal).focus();
}
createDesktopSection(serverError) {
var handleUpdateSection;