[all components] Fix canceled exit unmount - #5401
Conversation
commit: |
Bundle size
PerformanceTotal duration: 991.64 ms -53.14 ms(-5.1%) | Renders: 78 (+0) | Paint: 1,524.47 ms -116.43 ms(-7.1%) No significant changes — 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. |
|
@claude review |
PR reviewThe core change is right: the aborted-animation branch previously had no terminal state, so a canceled exit transition with no replacement animation left the cleanup callback permanently unfired (the stuck tooltip in #5395). Nothing here is merge-blocking, but the new terminal Bugs (2)1. 🟠 Stale viewport cleanup can now fire and abort an in-flight morphLocation: onAnimationsFinished(() => {
setPreviousContentNode(null);
setPreviousContentDimensions(null);
capturedNodeRef.current = null;
});All seven Before this diff a stale chain whose element had no live animations simply died in the empty-array branch. Now it calls Failure scenario: Fix: Thread an 2. 🟡
|
6bb0e94 to
e4acf09
Compare
|
Note GPT-5.6 finds this bug: |
Fixes #5395
Changes