chat: autofocus on desktop, not mobile

This commit is contained in:
Matilde Park 2020-08-10 23:51:37 -04:00
parent 442d124836
commit 652e7b75cd

View File

@ -124,7 +124,7 @@ export default class ChatEditor extends Component {
onChange={(e, d, v) => this.messageChange(e, d, v)}
editorDidMount={(editor) => {
this.editor = editor;
if (BROWSER_REGEX.test(navigator.userAgent)) {
if (!(BROWSER_REGEX.test(navigator.userAgent))) {
editor.focus();
}
}}