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: ngClass does not update correctly when switching browser tabs #12842

Closed
@wimme

Description

@wimme

I created a demo to illustrate the issue: http://plnkr.co/edit/6yDtaN2NUF8xUOWVyboT?p=preview

When you open it, it works correctly, but leave it running and switch to another tab in your browser for a minute and come back. Then the colors don't match anymore with the displayed values, because there are suddenly multiple classes applied to the elements. After it went through all severities, then it is working correctly again.

I use this in an app to monitor values and show their alarm color, so when the severity changes while the user was doing something else, then the alarm color is suddenly not correct anymore when he comes back to the app (knowing the severity might not change more than once a day).

When removing 'ngAnimate' from the modules, the issue does not occur. I'm not using ngAnimate for this functionality, but I need to have ngAnimate as a dependency for other elements.

I have this issue in Chrome, Firefox, IE and Edge on Windows.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions