Browse Source

Focus input field after sending message (#316)

Fixes #305
Julian Winter 8 years ago
parent
commit
f710a5b86f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/directives/compose_area.ts

+ 1 - 0
src/directives/compose_area.ts

@@ -193,6 +193,7 @@ export default [
                         submitText().then(() => {
                             // Clear compose div
                             composeDiv[0].innerText = '';
+                            composeDiv[0].focus();
 
                             // Send stopTyping event
                             scope.stopTyping();