summaryrefslogtreecommitdiffstats
path: root/web/react/components/create_post.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-15 12:07:06 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-15 15:00:28 -0400
commit1571a9a2dfbe6dd3bb598a92f7f62e457b613241 (patch)
treec615bb285e59cc2fb9faa61bbbe02af858b9212b /web/react/components/create_post.jsx
parentfda7a99e8ce15d51f1d7b2667015af2ef8ab1dec (diff)
downloadchat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.tar.gz
chat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.tar.bz2
chat-1571a9a2dfbe6dd3bb598a92f7f62e457b613241.zip
Fixing most deprication warnings
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r--web/react/components/create_post.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index f35079383..6203e567a 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -174,7 +174,7 @@ export default class CreatePost extends React.Component {
postMsgKeyPress(e) {
if (e.which === 13 && !e.shiftKey && !e.altKey) {
e.preventDefault();
- React.findDOMNode(this.refs.textbox).blur();
+ ReactDOM.findDOMNode(this.refs.textbox).blur();
this.handleSubmit(e);
}
@@ -192,7 +192,7 @@ export default class CreatePost extends React.Component {
PostStore.storeCurrentDraft(draft);
}
resizePostHolder() {
- const height = $(window).height() - $(React.findDOMNode(this.refs.topDiv)).height() - 50;
+ const height = $(window).height() - $(ReactDOM.findDOMNode(this.refs.topDiv)).height() - 50;
$('.post-list-holder-by-time').css('height', `${height}px`);
$(window).trigger('resize');
if ($(window).width() > 960) {
@@ -243,7 +243,7 @@ export default class CreatePost extends React.Component {
handleTextDrop(text) {
const newText = this.state.messageText + text;
this.handleUserInput(newText);
- Utils.setCaretPosition(React.findDOMNode(this.refs.textbox.refs.message), newText.length);
+ Utils.setCaretPosition(ReactDOM.findDOMNode(this.refs.textbox.refs.message), newText.length);
}
removePreview(id) {
const previews = Object.assign([], this.state.previews);