Skip to content

Conversation

@thePunderWoman
Copy link
Contributor

@thePunderWoman thePunderWoman commented Oct 22, 2025

We were clearing duplicate nodes when both animate.enter and animate.leave were on a node and were toggled quickly. We didn't account for this same situation, but when solely animate.leave is present and rapid toggles occur. This ensures that the cancelLeavingNodes function is called in all cases instead of just enter animations.

fixes: #64581

…mate.leave`` calls

We were clearing duplicate nodes when `animate.enter` fired fast, but not when solely `animate.leave` is fired and rapid toggles occur. This ensures that the `cancelLeavingNodes` function is called in all cases instead of just enter animations.

fixes: angular#64581
@thePunderWoman thePunderWoman added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release labels Oct 22, 2025
@ngbot ngbot bot modified the milestone: Backlog Oct 22, 2025
@thePunderWoman thePunderWoman removed the request for review from AndrewKushnir October 22, 2025 18:38
@thePunderWoman thePunderWoman added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 22, 2025
@thePunderWoman
Copy link
Contributor Author

This PR was merged into the repository. The changes were merged into the following branches:

thePunderWoman added a commit that referenced this pull request Oct 22, 2025
…mate.leave`` calls (#64592)

We were clearing duplicate nodes when `animate.enter` fired fast, but not when solely `animate.leave` is fired and rapid toggles occur. This ensures that the `cancelLeavingNodes` function is called in all cases instead of just enter animations.

fixes: #64581

PR Close #64592
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Element that is shown again before the leave animation completed is retained in the DOM

2 participants