Skip to content

fix: [TA-210] InputLongformBox 내부 text 상태와 외부 value prop 불일치#100

Merged
seorinn merged 2 commits into
developfrom
TA-210-fix-input-longform-initial-value
May 13, 2026
Merged

fix: [TA-210] InputLongformBox 내부 text 상태와 외부 value prop 불일치#100
seorinn merged 2 commits into
developfrom
TA-210-fix-input-longform-initial-value

Conversation

@seorinn

@seorinn seorinn commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • InputLongformBox/index.tsx에서 내부 text state가 빈 문자열("")로 초기화되어 value prop 초기값이 무시되던 버그 수정
  • useState<string>("")useState<string>(value)로 변경
  • 효과: 편집 화면 등 초기값이 있는 경우 글자 수 카운터 정상 표시, textarea 자동 높이 조절 초기에도 작동

Test plan

  • 기존 value(예: "안녕하세요")를 prop으로 전달하며 마운트 → 글자 수 카운터 올바르게 표시 확인
  • 초기 textarea 높이가 입력된 텍스트 길이에 맞게 자동 조정 확인
  • 빈 값으로 마운트 시 기존 동작 유지 확인 (카운터 0, 최소 높이)
  • 텍스트 수정 시 카운터 정상 증감 확인

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
damaba Ready Ready Preview, Comment May 13, 2026 7:07am

@seorinn seorinn marked this pull request as ready for review May 13, 2026 07:08
@seorinn seorinn merged commit 8283ec1 into develop May 13, 2026
3 checks passed
@seorinn seorinn deleted the TA-210-fix-input-longform-initial-value branch May 13, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant