chat-editor: focus on reply

This commit is contained in:
Liam Fitzgerald 2021-04-02 14:56:54 +10:00
parent 2bbff45c38
commit 726f0c1d58
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -108,6 +108,7 @@ export default class ChatEditor extends Component {
if (prevProps.message !== props.message) {
this.editor.setValue(props.message);
this.editor.setOption('mode', MARKDOWN_CONFIG);
this.editor?.element?.focus();
return;
}