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) {
|
switch (action) {
|
||||||
case MessageComposerAction.Send:
|
case MessageComposerAction.Send:
|
||||||
this.sendEdit();
|
this.sendEdit();
|
||||||
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
case MessageComposerAction.CancelEditing:
|
case MessageComposerAction.CancelEditing:
|
||||||
|
event.stopPropagation();
|
||||||
this.cancelEdit();
|
this.cancelEdit();
|
||||||
break;
|
break;
|
||||||
case MessageComposerAction.EditPrevMessage: {
|
case MessageComposerAction.EditPrevMessage: {
|
||||||
|
|
Loading…
Reference in a new issue