diff --git a/react/features/chat/components/web/ChatInput.js b/react/features/chat/components/web/ChatInput.js index 7d4800bdf..51564d096 100644 --- a/react/features/chat/components/web/ChatInput.js +++ b/react/features/chat/components/web/ChatInput.js @@ -90,7 +90,7 @@ class ChatInput extends Component { * HTML Textareas do not support autofocus. Simulate autofocus by * manually focusing. */ - this.focus(); + this._focus(); } /** @@ -131,21 +131,13 @@ class ChatInput extends Component { ); } - /** - * Removes cursor focus on this component's text area. - * - * @returns {void} - */ - blur() { - this._textArea && this._textArea.blur(); - } - /** * Place cursor focus on this component's text area. * + * @private * @returns {void} */ - focus() { + _focus() { this._textArea && this._textArea.focus(); } @@ -203,7 +195,7 @@ class ChatInput extends Component { showSmileysPanel: false }); - this.focus(); + this._focus(); } _onToggleSmileysPanel: () => void; @@ -217,7 +209,7 @@ class ChatInput extends Component { _onToggleSmileysPanel() { this.setState({ showSmileysPanel: !this.state.showSmileysPanel }); - this.focus(); + this._focus(); } _setTextAreaRef: (?HTMLTextAreaElement) => void;