Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(core): pass element removal property through in all locations
The `requireSynchronousElementRemoval` property was not being passed in all the locations it was needed. This was preventing leave animation timing from behaving properly in some cases.

fixes: #64525
  • Loading branch information
thePunderWoman committed Oct 21, 2025
commit 759eb92c075442b76a1a262e197a95514413b335
2 changes: 1 addition & 1 deletion packages/animations/browser/src/render/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class BaseAnimationRenderer implements Renderer2 {
// Elements using the new `animate.leave` API require synchronous removal and should
// skip the rest of the legacy animation behaviors.
if (requireSynchronousElementRemoval) {
this.delegate.removeChild(parent, oldChild, isHostElement);
this.delegate.removeChild(parent, oldChild, isHostElement, requireSynchronousElementRemoval);
return;
}
// Prior to the changes in #57203, this method wasn't being called at all by `core` if the child
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,13 @@ export class DynamicDelegationRenderer implements Renderer2 {
this.delegate.insertBefore(parent, newChild, refChild, isMove);
}

removeChild(parent: any, oldChild: any, isHostElement?: boolean | undefined): void {
this.delegate.removeChild(parent, oldChild, isHostElement);
removeChild(
parent: any,
oldChild: any,
isHostElement?: boolean | undefined,
requireSynchronousElementRemoval?: boolean,
): void {
this.delegate.removeChild(parent, oldChild, isHostElement, requireSynchronousElementRemoval);
}

selectRootElement(selectorOrNode: any, preserveContent?: boolean | undefined): any {
Expand Down