Repository navigation
[drawer] Fix nested swipe cancel state - #4410
Conversation
commit: |
Bundle size report
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. |
Codex Review (GPT-5.4)This is a bug-fix PR focused on keeping nested drawer stack visuals in sync when a nested swipe is reversed before release. I reviewed the full diff against a freshly fetched 1. Bugs / Issues (None)2. Root Cause & Patch Assessment
3. Pattern Consistency Assessment
4. Simplification OpportunitiesStrengths:
Gaps:
5. Edge Cases Worth Noting
6. Test Coverage Assessment
Merge Confidence Score
Overall merge confidence is 4/5. I did not find any branch-relevant bugs in the current diff. |
|
Clode Code SummaryThe PR fixes a bug where cancelling a nested drawer swipe (swiping down then back up before releasing) would leave the parent drawer's visual state out of sync — briefly revealing the previous drawer and keeping stale styles. What the PR does
Issues / questionsThe guard condition Minor: Test coverageThe new test is well-structured — it simulates a touch-down-then-back-up gesture and asserts both VerdictThe fix is clean and the helper extraction reduces duplication. The one thing I'd want confirmed is the invariant that |
LukasTy
left a comment
There was a problem hiding this comment.
LGTM. 👌
The data-nested-drawer-swiping attribute is now correctly cleared,
|
Nested drawer swipe-cancel could leave the parent drawer stack visuals out of sync, briefly revealing the previous drawer and then keeping it in the wrong state after the swipe was reversed.
Changes