-
Notifications
You must be signed in to change notification settings - Fork 24.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ivy - Animations animateChild not working #33597
Labels
area: animations
regression
Indicates than the issue relates to something that worked in a previous version
state: has PR
type: bug/fix
Milestone
Comments
matsko
added
regression
Indicates than the issue relates to something that worked in a previous version
and removed
severity3: broken
labels
Nov 5, 2019
crisbeto
added a commit
to crisbeto/angular
that referenced
this issue
Jan 8, 2020
…finish on destroy in ivy Fixes the animations engine not waiting for `:leave` animations to finish when a child component host is destroyed with Ivy. The issue seems to come from the fact that when removing a host element we end up calling `removeNode` on the namespace twice which in turn calls `triggerLeaveAnimation`. The first time everything is correct and the animation triggers, but the second time we don't check whether the animation was started and we remove the element immediately. These changes add some code to check that the leave animation hasn't been started already. Fixes angular#33597.
crisbeto
added a commit
to crisbeto/angular
that referenced
this issue
Jan 9, 2020
…ving parent in Ivy In angular#28162 we introduced an extra `removeNode` call for host elements which can cause the parent element to be removed before all child animations have finished. The issue is only in Ivy, because that the only place where we pass in the `isHostElement` flag. These changes fix the issue by not re-triggering the removal logic if the element has in-progress animations. Fixes angular#33597.
crisbeto
added a commit
to crisbeto/angular
that referenced
this issue
Jan 9, 2020
…ving parent in Ivy In angular#28162 we introduced an extra `removeNode` call for host elements which can cause the parent element to be removed before all child animations have finished. The issue is only in Ivy, because that the only place where we pass in the `isHostElement` flag. These changes fix the issue by not re-triggering the removal logic if the element has in-progress animations. Fixes angular#33597.
crisbeto
added a commit
to crisbeto/angular
that referenced
this issue
Jan 9, 2020
…ving parent in Ivy In angular#28162 we introduced an extra `removeNode` call for host elements which can cause the parent element to be removed before all child animations have finished. The issue is only in Ivy, because that the only place where we pass in the `isHostElement` flag. These changes fix the issue by not re-triggering the removal logic if the element has in-progress animations. Fixes angular#33597.
matsko
pushed a commit
that referenced
this issue
Jan 21, 2020
…ving parent in Ivy (#34702) In #28162 we introduced an extra `removeNode` call for host elements which can cause the parent element to be removed before all child animations have finished. The issue is only in Ivy, because that the only place where we pass in the `isHostElement` flag. These changes fix the issue by not re-triggering the removal logic if the element has in-progress animations. Fixes #33597. PR Close #34702
sonukapoor
pushed a commit
to sonukapoor/angular
that referenced
this issue
Feb 13, 2020
…ving parent in Ivy (angular#34702) In angular#28162 we introduced an extra `removeNode` call for host elements which can cause the parent element to be removed before all child animations have finished. The issue is only in Ivy, because that the only place where we pass in the `isHostElement` flag. These changes fix the issue by not re-triggering the removal logic if the element has in-progress animations. Fixes angular#33597. PR Close angular#34702
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: animations
regression
Indicates than the issue relates to something that worked in a previous version
state: has PR
type: bug/fix
🐞 bug report
Description
After enabling Ivy, Angular no longer waits for child components to animate before they get destroyed. To get this working before Ivy was via adding an animateChild animation to the parent component. Unfortunately this is not the case for Ivy.
A work arround is provided inside the reproduction repo below.
🔬 Minimal Reproduction
https://github.com/TomTomB/animation-ivy-issue
🌍 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: