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.

Animations Broke When Tab Open #14968

Open
@pwright322

Description

@pwright322

Note: for support questions, please use one of these channels: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Class does not update through ng-class when ngAnimate is included and new tab/window is opened. This seems to affect at least IE, Edge, and Safari (Mac) browsers. Version 1.4.x seems to behave as expected and this seems to have broken in 1.5

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (template: http://plnkr.co/edit/tpl:yBpEi4).

Demo of Issue

  1. Create an angular 1.5 app with ngAnimate included.
  2. Use ng-class on an element (e.g. is-processing).
  3. Add a click handler to the element that opens a new tab/window and updates the ng-class to a state (e.g. item is processing).
  4. Click the item to trigger processing
  5. Asynchronously reverse the property (e.g. item is done processing). With the window open, the class is-processing is never removed from the element even though the model that drives it is false.

What is the expected behavior?
The ng-class updates the class based on the model regardless if app is in the inactive tab.

What is the motivation / use case for changing the behavior?
ng-class is basic directive that should continue to work.

Which versions of Angular, and which browser / OS are affected by this issue? Did this work in previous versions of Angular? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.

Seems to happen in 1.5.x versions of angular. 1.4.x seemed to work. Affects IE, Edge, Safari on Mac.

Other information (e.g. stacktraces, related issues, suggestions how to fix)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions