mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
focus main composer after cancel or saving edit
This commit is contained in:
parent
e193522db1
commit
25e2c747ed
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,7 @@ export default class MessageEditor extends React.Component {
|
|||
|
||||
_cancelEdit = () => {
|
||||
dis.dispatch({action: "edit_event", event: null});
|
||||
dis.dispatch({action: 'focus_composer'});
|
||||
}
|
||||
|
||||
_sendEdit = () => {
|
||||
|
@ -185,6 +186,7 @@ export default class MessageEditor extends React.Component {
|
|||
this.context.matrixClient.sendMessage(roomId, content);
|
||||
|
||||
dis.dispatch({action: "edit_event", event: null});
|
||||
dis.dispatch({action: 'focus_composer'});
|
||||
}
|
||||
|
||||
_onAutoCompleteConfirm = (completion) => {
|
||||
|
|
Loading…
Reference in a new issue