Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngAnimate): ensure anchored animations remove the leave element at the correct time #11851

Closed
wants to merge 1 commit into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented May 11, 2015

Due to a mismatch of where the options.domOperation value was stored,
the element involved in the leave animation for an anchored animation
session was not removed as soon as the leave animation ended. This
resulted in a pending element persisting within the DOM until all
animations involved in the associated anchor animation were complete.
This patch fixes this issue.

Closes #11850

…t correct time

Due to a mismatch of where the `options.domOperation` value was stored,
the element involved in the `leave` animation for an anchored animation
session was not removed as soon as the leave animation ended. This
resulted in a pending element persisting within the DOM until all
animations involved in the associated anchor animation were complete.
This patch fixes this issue.

Closes angular#11850
@petebacondarwin
Copy link
Contributor

LGTM

@Narretz
Copy link
Contributor

Narretz commented May 11, 2015

No test needed?
Disregard that

@Narretz Narretz added this to the 1.4.0-rc.2 milestone May 11, 2015
@matsko
Copy link
Contributor Author

matsko commented May 11, 2015

@Narretz The old test tested for this, but the mocking properties were incorrect.

@matsko
Copy link
Contributor Author

matsko commented May 14, 2015

Merged as 64c66d0

@matsko matsko closed this May 14, 2015
@matsko matsko deleted the fix_anchor_leave_operation branch May 14, 2015 20:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng-animate-ref doesn't remove the leave animation when it ends
4 participants