-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Strange behaviour of uib-collapse inside ng-repeat #4885
Comments
Maybe related? #4848 |
Closing as support question answered on SO, link |
I got only a partial answer on SO about transition between primitives. |
This is a result of the expand animation being run immediately in the link function. Adding the following code:
at the top of the linking function seems to solve the problem. We should look at why the 'collapse' class is being removed in the expand function. We should be doing something like the collapse function is doing:
Updated plunk with code changes. |
Thank you! Is there a chance that this fix will be included in next releases? I think changing of vendor sources is a bad practice :) |
I wonder if this is related to all of our ngAnimate modal + collapse issues - can you check on whether the fix fixes those issues to @RobJacobs? |
@wesleycho Will do, wanted to get the positioning PR in first. |
This is not related to the modal issues - that one turns out to be a gotcha with ng-app needing to be present on the |
Actually...nevermind, I could be mistaken. |
So to clarify why the collapse class is removed - Bootstrap uses the |
Great job, @wesleycho, thank you! |
Faced with strange behaviour of uib-collapse inside ng-repeat with changing collection: animations calls with each collection update, despite the fact that uib-collapse is set to false;
See plunkr: http://plnkr.co/edit/rP1AlbLsi1qXuJOJL0D6?p=preview
The text was updated successfully, but these errors were encountered: