Skip to content

Commit 3432882

Browse files
authored
fix(app): fix issue with scroll jumping when pressing escape in comment text area (anomalyco#15374)
1 parent 18fb19d commit 3432882

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ui/src/components/line-comment.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ export const LineCommentEditor = (props: LineCommentEditorProps) => {
244244
event.stopPropagation()
245245
if (e.key === "Escape") {
246246
event.preventDefault()
247+
e.currentTarget.blur()
247248
split.onCancel()
248249
return
249250
}

0 commit comments

Comments
 (0)