|
@@ -257,9 +257,8 @@ export default [
|
|
if (!composeAreaIsEmpty()) {
|
|
if (!composeAreaIsEmpty()) {
|
|
submitText().then(() => {
|
|
submitText().then(() => {
|
|
// Clear compose div
|
|
// Clear compose div
|
|
- // TODO: Use clear() and focus() methods
|
|
|
|
- composeDiv[0].innerText = '';
|
|
|
|
- composeDiv[0].focus();
|
|
|
|
|
|
+ composeArea.clear();
|
|
|
|
+ composeArea.focus();
|
|
|
|
|
|
// Send stopTyping event
|
|
// Send stopTyping event
|
|
stopTyping();
|
|
stopTyping();
|