Repository navigation
Conversation
close vuejs#5385 close vuejs#1531 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughTransitionGroup now measures nested children relative to the nearest ancestor group’s rendered item when available. An end-to-end test checks move classes when outer groups and inner items reorder. ChangesNested Group Positioning
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The nested-group positioning change is ready to merge after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change affects browser animation positioning. The reviewed path does not introduce access to privileges, sensitive data, or another service. Risk remains low rather than minimal because coverage of the broader change is incomplete. Retained concerns Security review detailsSecurity Blast Radius
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
|
Thanks for working on this! Measuring relative to the enclosing item can suppress valid inner moves when the outer group has no move transition or doesn't update. I've opened #15848 to account for which enclosing groups actually handle the movement and keep the origin and child measurements aligned, with additional coverage for deeper nesting and different update orders. Closing this in favor of that PR. |
close #5385
close #1531
Problem
When a
<TransitionGroup>is nested inside an item of another<TransitionGroup>and the outer list reorders, the inner items get the outer movement applied twice:-movetranslation on top of the outer one.Fix
If a group has an ancestor
<TransitionGroup>, it now measures its children relative to the outer group's item that contains it. The outer group still animates that item, including everything inside it, and the inner group only animates movement within the item. Groups that aren't nested are unchanged.Why not measure relative to the parent element (as in #8803)?
I tried that first. It fixes the nested case but breaks groups whose container moves itself. For example, in a bottom-anchored toast stack (
position: fixed; bottom: 0), adding a toast moves the existing toasts up on screen but not relative to their container, so they jump instead of sliding. With this PR they still animate.Verification
mainit fails: items that only rode along getinner-move.inner-move.Transition/TransitionGroupbrowser e2e tests pass, as does the full unit suite.vue3.html: 6/6 inner items fly sideways onmain, 0/6 with this PR.tag, an inner group that is itself the outer item, an inner group withouttag, and 3 levels of nesting.Thanks to @daniser for the earlier attempt in #8803.
🤖 Generated with Claude Code
Summary by CodeRabbit