Skip to content
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

fix(animations): not waiting for child animations to finish when removing parent in Ivy #34702

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jan 9, 2020

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 's 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.

…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 crisbeto marked this pull request as ready for review January 9, 2020 18:12
@crisbeto crisbeto requested review from a team as code owners January 9, 2020 18:12
@crisbeto crisbeto added area: animations comp: ivy action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jan 9, 2020
@ngbot ngbot bot added this to the needsTriage milestone Jan 9, 2020
@matsko
Copy link
Contributor

matsko commented Jan 16, 2020

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 16, 2020
@matsko
Copy link
Contributor

matsko commented Jan 17, 2020

matsko pushed a commit that referenced this pull request 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
@matsko matsko closed this in 697f6a5 Jan 21, 2020
sonukapoor pushed a commit to sonukapoor/angular that referenced this pull request 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
@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 Feb 21, 2020
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 action: presubmit The PR is in need of a google3 presubmit area: animations cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ivy - Animations animateChild not working
3 participants