This repository has been archived by the owner on May 29, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reverts commit 6f9f1fc.
$animateCss is giving lots of side effects and I see no real reason to have it. Reading the official docs I can read:
So it seems that using $animateCss here is a bit overkill and it is adding lot of weird complexity and issues. I tried to fix them, but only more issues were coming out. It is better to leave it as it was before because it works perfect with all the angular versions we support.
The majority of issues comes without
ngAnimate
activatedLet's see those side issues.
First one: If there is a hidden element on screen, $animateCss will computate its height:
Broken Plunker, no ngAnimate
Broken Plunker, ngAnimate
no $animateCss, no ngAnimate
no $animateCss, ngAnimate
Second one: I don't know how to explain this one, but with $animateCss, it is not showing the navbar correctly (just drag it for the responsive behavior):
Broken Plunker, no ngAnimate
(Works with ngAnimate)
no $animateCss, no ngAnimate
(Works the same with ngAnimate)
Third one: Nested accordions not being rendered correctly:
Broken Plunker, no ngAnimate
(Works with ngAnimate)
no $animateCss, no ngAnimate
(Works the same with ngAnimate)
So the biggest issues are when we don't use
ngAnimate
(people not caring about animations) and in some other cases even with Animation.I will probably raise an issue at the angular repo, but even if it ends being a bug, we cannot force all the users to move to the fixed version (not everyone can update) and the fix could take weeks. So I propose to revert this and if someday we see a real reason to use
$animateCss
we will use it, but the docs suggest me that we are barking to the wrong tree with this implementation.Fixes #4647
Fixes #4628
Fixes #4561