diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-10-15 15:18:39 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-10-15 15:18:39 -0400 |
commit | c890e21cefe135a74a4a7235b704e7af95decc5c (patch) | |
tree | 46625abd1f88a70e4c5774ac37bdd7d10e899768 /web/react/components/create_post.jsx | |
parent | bd2fec0fb16783049ec555d8015f49a0ed3ccf80 (diff) | |
parent | 8d630fc3ee6a06b8daeb117a9e166c5dfba55a52 (diff) | |
download | chat-c890e21cefe135a74a4a7235b704e7af95decc5c.tar.gz chat-c890e21cefe135a74a4a7235b704e7af95decc5c.tar.bz2 chat-c890e21cefe135a74a4a7235b704e7af95decc5c.zip |
Merge pull request #1075 from mattermost/plt-577
PLT-577 Upgrading dependencies.
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r-- | web/react/components/create_post.jsx | 6 |
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); |