-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ngAnimate breaks ngRepeat when using custom transitions since 1.2.13 #6395
Comments
(Moving the transition to a pseudo class like ":hover" works as a workaround) |
Strange: when you filter the list, and some items remain, and you hover over the items, they finally disappear |
This is pretty severe. Thank you for pointing this out. |
The problem lies with |
@matsko The problem seems to appear when the transitions are directly on the ng-repeat, tr or not: |
Ahh excellent. I'm taking a look. |
…the closing timeout Closes angular#6395
OK we have a fix. $animate uses CSS events to capture when animations end, but it also has a fallback timeout to capture elements that never animated in the first place. This is exactly what is happening here. The closing timeout didn't get all the elements collected properly to close. The reason, however, why your code is relying on the timeout instead of CSS events is because no animation is actually getting triggered. You need to use setup transitions or keyframes for the Either way this is a bug and thank you for finding it. |
Good to know that it is fixed, @matsko! Just wondering, isn't ng-animate supposed to completely get out of the way when transitions (and animations?) are defined on element without having the relevant ng-animate classes? Or does it work differently? |
…the closing timeout Closes angular#6395
|
That's what I thought as well. Especially because it worked before 1.2.13. Thanks a bunch @matsko! |
Oh, okay thanks @matsko. I see now that the animation code runs regardless of the animations defined, because it can't figure that out beforehand. |
Yes. The JS API for detecting animations is very limited. Hopefully it will change soon. |
Side note - TRs are very finnicky x-browser in general, and I'd recommend using multiple TBODY tags instead as they render correctly but still preserve the structure you're probably looking for. I ran into a similar issue for a mobile implementation a month or two ago. |
…the closing timeout Closes angular#6395
Appreciated. :)
|
…the closing timeout Closes angular#6395
In reference to v1.2.13 and the following change:
We stepped over the following problem:
Result:
Plunker: http://plnkr.co/edit/4y53HAnTerFmSTFNS2cU
The text was updated successfully, but these errors were encountered: