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: Cannot re-enable animations with $animate.enabled #13179

Closed
@dcherman

Description

@dcherman

If you are a descendant of an element that potentially called $animate.enabled(elem, false), you cannot re-enable animations on yourself by calling $animate.enabled(elem, true)

It looks like when you do the latter, the element is simply removed from the internal HashMap rather than having a value toggled. As a result, the while loop that checks whether or not animations are enabled for a given element only considers whether or not a parent is disabled, not whether or not it's explicitly enabled.

http://jsfiddle.net/rogqp47y/8/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions