ngAnimate leaves elements in DOM for a strange amount of time #6748
Description
Example fiddle here: http://jsfiddle.net/Ttj24/2/
Try pressing enter several times (or any other keyboard key) whilst having focus on the input. On each keydown I clear the ngRepeat array, and append two elements to it.
After you run the fiddle, every keydown
on the aforementioned input adds two new ngRepeat
elements. After about 6 seconds if I hit another (e.g.) enter
key in that input all of the elements except the first two disappear (after 0.27s which is related to #6747). After that every enter
adds two elements and removes as expected.
If you change the transition duration on .anim
to e.g. 0.5s
like this (and then rerun the fiddle):
.anim.ng-enter{
transition: all 0.5s ease;
}
the 6 seconds I wrote becomes about 3 minutes or more.