Repository navigation
[collapsible] Fix trigger and panel state bugs - #4848
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,039.96 ms -57.22 ms(-5.2%) | Renders: 50 (+0) | Paint: 1,580.64 ms -67.69 ms(-4.1%)
10 tests within noise — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
f5773b2 to
75a47d7
Compare
Code Review (GPT-5.5)Approve ✅ No actionable issues remain; the Collapsible bug-fix paths are narrowly patched and covered by focused runtime and type validation. 1. Bugs / Issues (None)Root Cause & Patch AssessmentThe changes address the concrete state bugs: canceled Test Coverage AssessmentI ran |
Fix a few Collapsible edge cases and intentionally add the missing regression coverage alongside the fixes.
Root cause
A few paths missed small state checks: the trigger destructured id before forwarding props, initially open panels only cleared mount-animation suppression on one close path, and beforematch opened before honoring canceled change details.
Changes