Handle focusing multiple composers

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-08 17:33:49 +02:00
parent 14687f3630
commit 7734f8aeef
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
4 changed files with 33 additions and 3 deletions

View file

@ -452,6 +452,8 @@ export default class EditMessageComposer extends React.Component<IProps, IState>
} else if (payload.text) {
this.editorRef.current?.insertPlaintext(payload.text);
}
} else if (payload.action === Action.FocusEditMessageComposer && this.editorRef.current) {
this.editorRef.current.focus();
}
};