Prevent escape to cancel edit from also scrolling to bottom (#7380)
This commit is contained in:
parent
3c9c82ee0d
commit
7857bf2da1
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue