Преглед изворни кода

Focus input field after sending message (#316)

Fixes #305
Julian Winter пре 8 година
родитељ
комит
f710a5b86f
1 измењених фајлова са 1 додато и 0 уклоњено
  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();