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.

ng-show/hide is delayed on an element that is animating #8224

@SimplGy

Description

@SimplGy

This is not expected behavior if you're doing a constant animation on something like a loading spinner and just want to hide or show it immediately.

The element was not told to be managed by ng-animate, I just want normal ng-show/hide to happen instantly, and any css animations that happen to be ongoing should be irrelevant, I think.

Fiddle: http://jsfiddle.net/PvS8k/2/

Uncheck "show loader" and note that it takes a few seconds to actually go away.

I think this is a recent change because our loader wasn't sticking in our application before upgrading. I think we were on 1.12 before.

I must be missing something in my understanding of how to use/not use ng-animate, right? In this case I actually want to NOT use it, but if I can use it to ignore this element, that would work too. Definitely surprising behavior though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions