Browse Source

Focus input field after sending message (#316)

Fixes #305
Julian Winter 8 năm trước cách đây
mục cha
commit
f710a5b86f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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();