diff options
| author | Yihui Khuu <[email protected]> | 2026-03-09 20:59:24 +1100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-09 15:29:24 +0530 |
| commit | 34328828ae9d28afe28202d8122a6983a6b2dc0f (patch) | |
| tree | e17599e9331cf9c9266af9c301c4fbdfdc240856 | |
| parent | 18fb19da3b5aad7e05af9ebdfb881704319853a7 (diff) | |
| download | opencode-34328828ae9d28afe28202d8122a6983a6b2dc0f.tar.gz opencode-34328828ae9d28afe28202d8122a6983a6b2dc0f.zip | |
fix(app): fix issue with scroll jumping when pressing escape in comment text area (#15374)
| -rw-r--r-- | packages/ui/src/components/line-comment.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/ui/src/components/line-comment.tsx b/packages/ui/src/components/line-comment.tsx index 73d83f7d7..ff5d1df00 100644 --- a/packages/ui/src/components/line-comment.tsx +++ b/packages/ui/src/components/line-comment.tsx @@ -244,6 +244,7 @@ export const LineCommentEditor = (props: LineCommentEditorProps) => { event.stopPropagation() if (e.key === "Escape") { event.preventDefault() + e.currentTarget.blur() split.onCancel() return } |
