This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngAnimate: Wrong classes attached to element with animations #4699
Closed
Description
I got an element with ng-class="{shown: !!some.condition}"
, initially shown, and I noticed that it has weird classes attached. I set up a breakpoint to watch changes of this element, and here's how the class list changed:
thumbnails ng-isolate-scope ng-scope shown
thumbnails ng-isolate-scope ng-scope shown shown-add-active
(attached stackrace is from here)- then some time passes... (
$timeout
) thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate
thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate shown-remove
thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate shown-remove shown-remove-active
thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate shown-remove-active
thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate
thumbnails ng-isolate-scope ng-scope shown shown-add-active
thumbnails ng-isolate-scope ng-scope shown-add-active
- ...and it stays stuck in this position.
One interesting thing I noted was also that the last change (10) was done by jqLite, not jQuery (which we use in our project).
Here's also a stacktrace from step 2:
I use the newest angular (d434eabec3
from master
).