fix(tooltip): Tooltip 문서 추가 및 SSR/ref 버그 수정 - #315
Conversation
🦋 Changeset detectedLatest commit: 6db929e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Summary
Tooltip컴포넌트의 문서 페이지를 추가합니다.문서를 작성하는 과정에서 발견한 Tooltip 버그 수정 사항이 담긴 PR입니다.
createPortal을 조건 없이 호출해서 생기던 SSR 크래시 위험tooltipContent가 비어있을 때 전달된ref가 끊기던 문제Changes
asChild예제, Anatomy, API Reference, Accessibility, Known limitationsdocument가 존재하기 전에는 실행되지 않도록mounted플래그로createPortal호출을 지연ref끊김 수정:tooltipContent가 falsy여도 트리거의ref/이벤트 핸들러 연결은 그대로 유지하고, 툴팁 마크업만 생략하도록 변경tooltipContent가 비어있을 때ref가 정상 forwarding되는지 확인하는 회귀 테스트 추가Visuals