Skip to content

Commit 853ed16

Browse files
thePunderWomanmmalerba
authored andcommitted
fix(core): ensure missing leave animations don't queue leave animations (#64226)
There was a bug in the logic for checking if a leave animation exists for a node. This was affecting timing of nodes with enter animations. PR Close #64226
1 parent 28668a5 commit 853ed16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/render3/node_manipulation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function runLeaveAnimationsWithCallback(
397397
callback: Function,
398398
) {
399399
const animations = lView?.[ANIMATIONS];
400-
if (animations == null || (animations.leave && !animations.leave.has(tNode.index)))
400+
if (animations == null || animations.leave == undefined || !animations.leave.has(tNode.index))
401401
return callback(false);
402402

403403
// this is solely for move operations to prevent leave animations from running

0 commit comments

Comments
 (0)