Skip to content

fix(core): prevents unintended early termination of leave animations …#64088

Closed
thePunderWoman wants to merge 1 commit intoangular:mainfrom
thePunderWoman:animate-leave-fix
Closed

fix(core): prevents unintended early termination of leave animations …#64088
thePunderWoman wants to merge 1 commit intoangular:mainfrom
thePunderWoman:animate-leave-fix

Conversation

@thePunderWoman
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman commented Sep 25, 2025

…and hoisting

The event listeners for animationstart and animationend weren't properly checking whether the animation event fired matched the node we're bound to, since animation events bubble. This resulted in child node animation events bubbling up and causing elements to get prematurely removed.

fixes: #64084

@thePunderWoman thePunderWoman added area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release labels Sep 25, 2025
@ngbot ngbot bot modified the milestone: Backlog Sep 25, 2025
@thePunderWoman
Copy link
Copy Markdown
Contributor Author

I need to add a test for this to prevent regressions.

@thePunderWoman thePunderWoman force-pushed the animate-leave-fix branch 3 times, most recently from 215bff1 to 2889867 Compare September 25, 2025 18:29
@thePunderWoman thePunderWoman added the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 25, 2025
@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Sep 25, 2025
…and hoisting

The event listeners for animationstart and animationend weren't properly checking whether the animation event fired matched the node we're bound to, since animation events bubble. This resulted in child node animation events bubbling up and causing elements to get prematurely removed.

fixes: angular#64084
@thePunderWoman thePunderWoman added the action: merge The PR is ready for merge by the caretaker label Sep 25, 2025
@kirjs
Copy link
Copy Markdown
Contributor

kirjs commented Sep 25, 2025

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

kirjs pushed a commit that referenced this pull request Sep 25, 2025
…and hoisting (#64088)

The event listeners for animationstart and animationend weren't properly checking whether the animation event fired matched the node we're bound to, since animation events bubble. This resulted in child node animation events bubbling up and causing elements to get prematurely removed.

fixes: #64084

PR Close #64088
@kirjs kirjs closed this in 8a0c9ca Sep 25, 2025
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Oct 26, 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.

Angular 20.3.x new animations is affected by MAT-BUTTON ripple animation.

3 participants