mirror of https://github.com/vector-im/riot-web
focus main composer after cancel or saving edit
parent
e193522db1
commit
25e2c747ed
|
@ -155,6 +155,7 @@ export default class MessageEditor extends React.Component {
|
||||||
|
|
||||||
_cancelEdit = () => {
|
_cancelEdit = () => {
|
||||||
dis.dispatch({action: "edit_event", event: null});
|
dis.dispatch({action: "edit_event", event: null});
|
||||||
|
dis.dispatch({action: 'focus_composer'});
|
||||||
}
|
}
|
||||||
|
|
||||||
_sendEdit = () => {
|
_sendEdit = () => {
|
||||||
|
@ -185,6 +186,7 @@ export default class MessageEditor extends React.Component {
|
||||||
this.context.matrixClient.sendMessage(roomId, content);
|
this.context.matrixClient.sendMessage(roomId, content);
|
||||||
|
|
||||||
dis.dispatch({action: "edit_event", event: null});
|
dis.dispatch({action: "edit_event", event: null});
|
||||||
|
dis.dispatch({action: 'focus_composer'});
|
||||||
}
|
}
|
||||||
|
|
||||||
_onAutoCompleteConfirm = (completion) => {
|
_onAutoCompleteConfirm = (completion) => {
|
||||||
|
|
Loading…
Reference in New Issue