mirror of https://github.com/vector-im/riot-web
Prevent escape to cancel edit from also scrolling to bottom (#7380)
parent
3c9c82ee0d
commit
7857bf2da1
|
@ -160,9 +160,11 @@ class EditMessageComposer extends React.Component<IEditMessageComposerProps, ISt
|
|||
switch (action) {
|
||||
case MessageComposerAction.Send:
|
||||
this.sendEdit();
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
break;
|
||||
case MessageComposerAction.CancelEditing:
|
||||
event.stopPropagation();
|
||||
this.cancelEdit();
|
||||
break;
|
||||
case MessageComposerAction.EditPrevMessage: {
|
||||
|
|
Loading…
Reference in New Issue