瀏覽代碼

fix(chat) Focus input on chat open (#13285)

factor2
Robert Pintilii 2 年之前
父節點
當前提交
f6760e4ac7
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      react/features/chat/components/web/ChatInput.tsx

+ 2
- 0
react/features/chat/components/web/ChatInput.tsx 查看文件

@@ -90,6 +90,8 @@ class ChatInput extends Component<IProps, IState> {
90 90
         if (isMobileBrowser()) {
91 91
             // Ensure textarea is not focused when opening chat on mobile browser.
92 92
             this._textArea?.current && this._textArea.current.blur();
93
+        } else {
94
+            this._focus();
93 95
         }
94 96
     }
95 97
 

Loading…
取消
儲存