|
|
@@ -90,7 +90,7 @@ class ChatInput extends Component<Props, State> {
|
|
90
|
90
|
* HTML Textareas do not support autofocus. Simulate autofocus by
|
|
91
|
91
|
* manually focusing.
|
|
92
|
92
|
*/
|
|
93
|
|
- this.focus();
|
|
|
93
|
+ this._focus();
|
|
94
|
94
|
}
|
|
95
|
95
|
|
|
96
|
96
|
/**
|
|
|
@@ -131,21 +131,13 @@ class ChatInput extends Component<Props, State> {
|
|
131
|
131
|
);
|
|
132
|
132
|
}
|
|
133
|
133
|
|
|
134
|
|
- /**
|
|
135
|
|
- * Removes cursor focus on this component's text area.
|
|
136
|
|
- *
|
|
137
|
|
- * @returns {void}
|
|
138
|
|
- */
|
|
139
|
|
- blur() {
|
|
140
|
|
- this._textArea && this._textArea.blur();
|
|
141
|
|
- }
|
|
142
|
|
-
|
|
143
|
134
|
/**
|
|
144
|
135
|
* Place cursor focus on this component's text area.
|
|
145
|
136
|
*
|
|
|
137
|
+ * @private
|
|
146
|
138
|
* @returns {void}
|
|
147
|
139
|
*/
|
|
148
|
|
- focus() {
|
|
|
140
|
+ _focus() {
|
|
149
|
141
|
this._textArea && this._textArea.focus();
|
|
150
|
142
|
}
|
|
151
|
143
|
|
|
|
@@ -203,7 +195,7 @@ class ChatInput extends Component<Props, State> {
|
|
203
|
195
|
showSmileysPanel: false
|
|
204
|
196
|
});
|
|
205
|
197
|
|
|
206
|
|
- this.focus();
|
|
|
198
|
+ this._focus();
|
|
207
|
199
|
}
|
|
208
|
200
|
|
|
209
|
201
|
_onToggleSmileysPanel: () => void;
|
|
|
@@ -217,7 +209,7 @@ class ChatInput extends Component<Props, State> {
|
|
217
|
209
|
_onToggleSmileysPanel() {
|
|
218
|
210
|
this.setState({ showSmileysPanel: !this.state.showSmileysPanel });
|
|
219
|
211
|
|
|
220
|
|
- this.focus();
|
|
|
212
|
+ this._focus();
|
|
221
|
213
|
}
|
|
222
|
214
|
|
|
223
|
215
|
_setTextAreaRef: (?HTMLTextAreaElement) => void;
|