From eec9f88110a83083ecd68a1d33e36a65b373bdc5 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 4 Feb 2016 11:28:40 -0500 Subject: Updated RHS textbox to refocus after clicking to upload a file --- web/react/components/create_comment.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index 8c49315e7..387d5bd8b 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -51,6 +51,7 @@ class CreateComment extends React.Component { this.commentMsgKeyPress = this.commentMsgKeyPress.bind(this); this.handleUserInput = this.handleUserInput.bind(this); this.handleKeyDown = this.handleKeyDown.bind(this); + this.handleUploadClick = this.handleUploadClick.bind(this); this.handleUploadStart = this.handleUploadStart.bind(this); this.handleFileUploadComplete = this.handleFileUploadComplete.bind(this); this.handleUploadError = this.handleUploadError.bind(this); @@ -218,6 +219,9 @@ class CreateComment extends React.Component { }); } } + handleUploadClick() { + this.refs.textbox.focus(); + } handleUploadStart(clientIds) { let draft = PostStore.getCommentDraft(this.props.rootId); @@ -365,6 +369,7 @@ class CreateComment extends React.Component {