fix(app): fix issue with scroll jumping when pressing escape in comment text area (#15374)
This commit is contained in:
@@ -244,6 +244,7 @@ export const LineCommentEditor = (props: LineCommentEditorProps) => {
|
|||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
if (e.key === "Escape") {
|
if (e.key === "Escape") {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
e.currentTarget.blur()
|
||||||
split.onCancel()
|
split.onCancel()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user