[tooltip] Reset preventUnmountOnClose on reopen#4885
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,259.24 ms -132.41 ms(-9.5%) | Renders: 50 (+0) | Paint: 1,929.59 ms -199.47 ms(-9.4%)
11 tests within noise — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codex Review (GPT-5.5)Reviewed the full PR diff for #4885 against freshly fetched 1. Bugs / Issues (None)I did not find any concrete branch-relevant bugs or regressions in the implementation. Root Cause & Patch AssessmentThe fix resets Repo Conventions / Cleanliness AssessmentThe change follows the repo’s hook utility guidance by using Test Coverage AssessmentI ran RecommendationApprove ✅ The patch addresses the root cause cleanly, the regression coverage matches the reported failure, and the targeted validation passed. |
Summary
preventUnmountOnClose()close from making later closes stay mounted forever.Bug
Calling
preventUnmountOnClose()latchespreventUnmountingOnClosepermanently. After one prevented close, later normal closes can keep the tooltip positioner mounted forever instead of unmounting after close completion.Reproduction
Test plan
pnpm test:jsdom TooltipRoot --no-watchpnpm test:chromium TooltipRoot --no-watch