Skip to content

fix(ivy): ensure element removal triggers host removal animations - #28162

Closed
matsko wants to merge 3 commits into
angular:masterfrom
matsko:issue_FW-943
Closed

matsko wants to merge 3 commits into
angular:masterfrom
matsko:issue_FW-943

Conversation

@matsko

@matsko matsko commented Jan 15, 2019

Copy link
Copy Markdown
Contributor

Prior to this fix Ivy would not execute any animation triggers
that exist as host bindings on an element if it is removed by
the parent template.

@matsko
matsko requested review from a team January 15, 2019 18:42
@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@matsko
matsko requested a review from a team January 15, 2019 23:07
@mary-poppins

Copy link
Copy Markdown

@matsko

matsko commented Jan 15, 2019

Copy link
Copy Markdown
Contributor Author

@matsko matsko added the target: major This PR is targeted for the next major release label Jan 16, 2019
@mary-poppins

Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the isComponent util here:

Suggested change
const isHostElement = (tNode.flags & TNodeFlags.isComponent) > 0;
nativeRemoveChild(renderer, parent !, node, isComponent(tNode));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you look into why your change doesn't fix this test? If there is a different root cause, we should create a Jira ticket and link it here.

@kara kara added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews comp: ivy labels Jan 16, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Jan 16, 2019
@mary-poppins

Copy link
Copy Markdown

@matsko

matsko commented Jan 16, 2019

Copy link
Copy Markdown
Contributor Author

@mary-poppins

Copy link
Copy Markdown

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matsko matsko removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Jan 17, 2019
@mary-poppins

Copy link
Copy Markdown

@matsko matsko added the action: merge The PR is ready for merge by the caretaker label Jan 17, 2019
@alxhub alxhub closed this in 5a582a8 Jan 17, 2019
@matsko
matsko deleted the issue_FW-943 branch January 17, 2019 19:40
@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 Sep 14, 2019
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 cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants