Deprecated nodes left with animated classes in angularjs application

I have a list repeating in the DOM with ng-repeat. Strings have a property transitiondefined on them in CSS. Sometimes, after some re-list manipulation, outdated nodes remain in the DOM, which look like this:

Stale nodes with animation classes

They have animation classes (ng-animate, ng-leave, etc.) so that they look like animation. And when I am on these nodes, they immediately leave.

Does anyone encounter such a problem?

Edit

This was a bug in angular, which was resolved in 1.2.15. https://github.com/angular/angular.js/issues/6748

Solved now :)

+4
source share

Source: https://habr.com/ru/post/1539722/


All Articles