Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngAnimate: 1.2 using ng-class to apply an animation will restart animation secondary class binding updates #4944

Closed
corbanbrook opened this issue Nov 13, 2013 · 1 comment
Assignees

Comments

@corbanbrook
Copy link

  <div class="pane" ng-class="{ open: open, 'edit-mode': isEditing }">

a transition is on the open class to handle sliding in and out the pane, but if a secondary class binding updates, in this example the 'edit-mode' class then entire open animation will restart by adding open-add and open-add-active

@matsko
Copy link
Contributor

matsko commented Nov 15, 2013

This should fix that: #4958

@ghost ghost assigned matsko Nov 18, 2013
@matsko matsko mentioned this issue Nov 19, 2013
@matsko matsko closed this as completed in 6b8bbe4 Nov 20, 2013
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
ngClass works by removing all the former classes and then adding all the
new classes to the element during each watch change operation. This may
cause transition animations to never render. The ngClass directive will
now only add and remove the classes that change during each watch operation.

Closes angular#4960
Closes angular#4944
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
ngClass works by removing all the former classes and then adding all the
new classes to the element during each watch change operation. This may
cause transition animations to never render. The ngClass directive will
now only add and remove the classes that change during each watch operation.

Closes angular#4960
Closes angular#4944
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants