angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

1.3.0-rc.3 - bug in ngAnimate when used with ngIf, directives and ngShow/ngHide

Open duncangrist opened this issue 12 years ago • 2 comments

I've found a situation in which simply adding ngAnimate as a module dependency can break normal angular behaviour.

This behaviour is broken in 1.3.0-rc.3.

Specifically, it seems that if you include a directive inside an ngIf conditional and that directive uses ng-hide or ng-show to conditionally display it's own content based upon a field in the scope, then that contents' visibility will not be consistent between apps which add ngAnimate as a dependency and those which do not.

Plnkr showing the issue: http://plnkr.co/edit/dimZAiOwW7l6APE9q7un?p=preview

duncangrist avatar Oct 01 '14 16:10 duncangrist

Thanks for reporting. I reproduced the issue, and then I tested this with latest snapshot and it is fixed: https://code.angularjs.org/snapshot/angular.js

jeffbcross avatar Oct 09 '14 19:10 jeffbcross

Yes, I can confirm this my end as well in my actual application. Thanks a lot guys :)

duncangrist avatar Oct 10 '14 08:10 duncangrist