Repository navigation
[popups] Consider the controlled open prop for open state detection - #4712
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,581.03 ms 🔺+285.76 ms(+22.1%) | Renders: 53 (+0) | Paint: 2,427.54 ms 🔺+400.97 ms(+19.8%)
…and 7 more — 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)This follow-up review covers the full PR branch against freshly fetched 1. Remaining Bugs / Issues (None)No remaining actionable issues found. Previous Review Issues StatusThe prior issue with public handles reporting stale raw Root Cause & Patch AssessmentThe core fix is consistent: The handle updates are also aligned with that model. Since the affected stores are constructed with popup selectors, Test Coverage AssessmentThe added tests cover the low-level selector cases and the controlled close-veto flow through Menu and AlertDialog, including Commands run: pnpm typescript
pnpm test:jsdom MenuTrigger AlertDialogRoot popups/store --no-watch
pnpm test:jsdom detached-triggers --no-watch
pnpm test:chromium detached-triggers --no-watch
git diff --check upstream/master...origin/menu-popup-openAll passed. RecommendationApprove ✅ The implementation is small, consistent with the existing popup store architecture, and the previously identified public API mismatch is fixed with targeted coverage. I don’t see further issues that should block this PR. |
Fixes the controlled popup trigger state after a close request is vetoed.
Updated shared popup trigger state to derive
isOpenedByTriggerfrom the effective open state,openProp ?? open, instead of raw internalopen.Fixes #4709