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 doesn't cleanup correctly when on root Element #10527

Closed
@Narretz

Description

@Narretz

When you have something like

<body ng-app="myApp"></body>

and do
$animate.addClass(body, 'abc');

the ng-animate class is not removed after the animation finishes. This is because cleanup has a special path if it's the root element: https://github.com/angular/angular.js/blob/master/src/ngAnimate/animate.js#L1512
(Simple) animations work anyway, so it looks like a minor thing - although the default path does a little more stuff.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions