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 applies sequential addClass and removeClass animations out of order #12573

Closed
@harmoney-nikr

Description

@harmoney-nikr

Sample Plunkr: http://plnkr.co/edit/GNNLxdoRVuP4WkUBFz2k?p=preview

To reproduce, continue to type the same key in the email field so it never validates. Every 2-3 presses the ng-invalid class will be removed, however the span with ng-if remains (proving that the $invalid property is still true).

As far as I can tell, when a removeClass and an addClass are fired within short succession of each other (which is the case here; the class is removed on keypress and added after validation) the order is not always the same and the removeClass can come after the addClass.

I couldn't tell exactly if #12248 would fix this issue. I suspect so but I thought I'd note it just to be sure.

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