const handleTextareaChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => { const textarea = e.target; if (textarea.scrollHeight > INPUT_FONT_SIZE * 5) { return; } textarea.style.height = 'auto'; textarea.style.height = textarea.scrollHeight + 'px'; };

textarea 입력 3줄 까지만 늘어나게 하기
Tags
React
CSS
TypeScript
날짜
Feb 6, 2023
상태
공개
연관 포스트
보고있는 포스트과 같은 태그를 가진 포스트 중 작성된 날짜와 가까운 시일 내 작성된 포스트 입니다.