Przeglądaj źródła

fix(app): fix issue with scroll jumping when pressing escape in comment text area (#15374)

Yihui Khuu 1 miesiąc temu
rodzic
commit
34328828ae
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      packages/ui/src/components/line-comment.tsx

+ 1 - 0
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
             }