You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I was having an issue that elements were getting left behind for 10 seconds and after lots of debugging, traced it back to accidentally leaving a 10 second animation-time on a menu which changes the dataset.
So: a long animation-time on a 1 of 2 ng-repeats will cause the 2nd ng-repeat to contain stale data for the duration of the 1st animation-time... but hovering over them makes them disappear
@intellix this bug is due to a limitation of what we can do with JavaScript detection of CSS. Long story short, ngAnimate doesn't know if the developer (you) intentionally set there to be a transition for ALL animations or just enter/leave since the transition value is inherited through to the element at the time of all the animations.
To fix this you need to have Angular skip animations for enter, leave or for all ngAnimate-triggered animations:
(the code still works in 1.4, but there is a pending PR which fixes an issue with the .ng-animate CSS class application #11807).
This should be better documented in both 1.3 and 1.4. I've created an issue that points that out.
I'm closing this issue since there is nothing we can do other than look out for this bug. Hopefully Angular 2.0 and maybe 1.5 can figure out a better way to detect this.
I was having an issue that elements were getting left behind for 10 seconds and after lots of debugging, traced it back to accidentally leaving a 10 second animation-time on a menu which changes the dataset.
So: a long animation-time on a 1 of 2 ng-repeats will cause the 2nd ng-repeat to contain stale data for the duration of the 1st animation-time... but hovering over them makes them disappear
Example: http://codepen.io/intellix/pen/jExyPe
I would have asked if this was expected behaviour, but hovering over the elements to make them disappear makes me doubt that
The text was updated successfully, but these errors were encountered: