mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 23:41:33 +02:00
clearStoredEditorState when canceling editing using a shortcut
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
086ce7c621
commit
d72c773e2d
@ -168,6 +168,7 @@ export default class EditMessageComposer extends React.Component {
|
|||||||
if (nextEvent) {
|
if (nextEvent) {
|
||||||
dis.dispatch({action: 'edit_event', event: nextEvent});
|
dis.dispatch({action: 'edit_event', event: nextEvent});
|
||||||
} else {
|
} else {
|
||||||
|
this._clearStoredEditorState();
|
||||||
dis.dispatch({action: 'edit_event', event: null});
|
dis.dispatch({action: 'edit_event', event: null});
|
||||||
dis.fire(Action.FocusComposer);
|
dis.fire(Action.FocusComposer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user