Skip to content

Commit

Permalink
feat: 텍스트 영역에 글 입력 시, 스크롤이 따라오도록 추가
Browse files Browse the repository at this point in the history
feat: 텍스트 영역에 글 입력 시, 스크롤이 따라오도록 추가
  • Loading branch information
klmhyeonwoo authored Feb 12, 2024
2 parents 06b0f19 + 0a45abc commit d699a63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/common/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const Textarea = ({
}

setHeight && setHeight(event.target.style.height);
document.body.scrollIntoView({ behavior: "smooth", block: "end" });
onChange(event);
}}
{...props}
Expand Down

0 comments on commit d699a63

Please sign in to comment.