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

Description

@mik01aj

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:

  1. thumbnails ng-isolate-scope ng-scope shown
  2. thumbnails ng-isolate-scope ng-scope shown shown-add-active (attached stackrace is from here)
  3. then some time passes... ($timeout)
  4. thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate
  5. thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate shown-remove
  6. thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate shown-remove shown-remove-active
  7. thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate shown-remove-active
  8. thumbnails ng-isolate-scope ng-scope shown shown-add-active ng-animate
  9. thumbnails ng-isolate-scope ng-scope shown shown-add-active
  10. thumbnails ng-isolate-scope ng-scope shown-add-active
  11. ...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:
screen shot 2013-10-29 at 15 27 24

I use the newest angular (d434eabec3 from master).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions