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] ng-move classes are not always being removed #4435

@OverZealous

Description

@OverZealous

I've created a sort of contrived example, but the .ng-move and .ng-move-active classes are not consistently being removed if the animation gets interrupted.

jsFiddle showing problem: http://jsfiddle.net/9736t/
Click Start / Stop once, wait for a second, then click it again to see the issue. Continuing to start and stop the process will exacerbate the problem.

In the example, the code randomly resorts a list. Whenever an item is moved, it receives .ng-move classes to highlight it. However, the resorting occurs faster than the animation, and sometimes the .ng-move classes are not removed. If the .ng-move classes get stuck, they are no longer added or removed at all. Eventually the entire list is stuck in the .ng-move.ng-move-active state.

This worked correctly under rc.2, with the same code.

This was tested on a Mac under Firefox, Chrome, and Safari, with consistent results.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions