Closed Rush closed 9 years ago
JSFiddle showing the problem http://jsfiddle.net/z8gtkpzd/ - spam-click on the CLICK
Did this work in 1.3.x?
There is no $animateCss
in 1.3.x so as such this exact thing cannot be done in 1.3.x.
This was definitely a bug. Thank you for finding it. This PR will fix the issue:
https://github.com/angular/angular.js/pull/11805
Also note that there is another PR which makes using $animateCss
much easier:
https://github.com/matsko/angular.js/commit/290fb4d4e69b894e2e5f95cc42d0a9661b4362c7
Angular version 1.4.0rc1
I wrote a custom javascript animation and applied it to
ng-if
:Simple behavior is correct when you toggle an item, it slides down and if you click again in the middle of the animation it slides back from the same position. But if you click yet again for it mid-animation to slide down ng-if creates a new DOM content and weirdly enough old DOM content starts animating down along with the new content. Is this expected behavior? Do you know of a workaround?