Преглед на файлове

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();