-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ngAnimate crash regression between 1.2.13 and 1.2.14 #6592
Comments
There was also a huge change regarding setClass / addClass / removeClass: |
I'm checking it out. I don't think that the callback issue could be to blame, but possibly the way that cancellations are done. @Narretz yes there were two big commits (one for 1.2.13 and another for 1.2.14) that made the setClass animations possible (1.2.14 made it so that if setClass is not present then it breaks down into addClass + removeClass). This shouldn't have effected it, however, the commit that you posted may be causing the issue due to the way that the runner code was refactored. |
@Narretz That's strange, the compare view did not show theses changes, the diff might be a bit big for it to work correctly. Will be happy to help if there is anything I can do. |
Still looking into this. I can reproduce the bug, but it's hard to track down. |
@matsko any news regarding this bug? Should I try to dig into it or is the API not stable enough yet? Thanks! |
Hey @mgcrea. Yes I spent a couple of hours yesterday breaking down the issue. I'm still not sure what's causing it. I'm getting close. |
@matsko to me it looks like the issue is that when
Here is the logging details of the events leading to the issue:
I find it very strange that tipElement is null in the last hide from "edit" as it just have been relinked. In that case Changing |
I thought it was the length issue, but it isn't. There's definitely an issue with the tooltip passing in an empty object, but what I'm trying to solve is why the code works in |
@matsko looks like I was wrong about the
The scheduling of $animate callbacks has changed between Regarding the scheduling:
Using a long animation time |
hi, guys! |
@mgcrea I recently revisited this issue? Did you happen to fix this within your framework because I am unable to reproduce the issue locally or within the |
ok, update to ngStrap to 2.0.2 and ngAnimate to 1.2.16 solve all problems, awesome |
@matsko, Indeed I patched AngularStrap for this specific issue for the v2.0.0 release. You can still reproduce the bug in this frozen plunker if you want. However, if you take a look at my post from a month ago regarding |
Sorry @mgcrea things have been really busy lately. Last time I tried to get to the bottom of this bug I was unable to reproduce it and get it to work out of the context of AngularStrap. If you or anyone here has any time this week could you possibly recreate the bug using the latest snapshot of ng/ngAnimate? Then I can get to the bottom of it and get rid of it. |
Closing this for now. Please reply incase an isolated example (without AngularStrap) comes out. |
I got crashing animations since 1.2.14, usually when the
$animate.enter
is called while the$animate.leave
is running. For instance if you hover very fast between two tooltips.Worked flawlessly with angular v1.2.13:
Crashes with angular v1.2.14:
Which translate to this line:
https://github.com/angular/angular.js/blob/v1.2.14/src/ngAnimate/animate.js#L284
The only change regarding
ngAnimate
betweenv1.2.13
andv1.2.14
seems to be the replace ofdone && $timeout(done, 0, false);
byasync(done)
.@matsko Do you have any idea where this regression might come from?
I've tested
ngAnimate#1.2.13
withangular#1.2.15-build.2389+sha.c5f2f58
and it still works, so it looks like this is a bug confined into ngAnimate.The text was updated successfully, but these errors were encountered: