mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00:00
Prevent escape to cancel edit from also scrolling to bottom (#7380)
This commit is contained in:
committed by
GitHub
parent
3c9c82ee0d
commit
7857bf2da1
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user