-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for collapse Animations #3838
Comments
This doesn't appear to be working for me either in Chrome or in Safari, even with the link you provided. |
@evilstiefel I have added a Plunker link as the StackBlitz is working fine for all of my browsers |
You have a bit of a problem with this directive. It can (and will) fire before child views are initialized and checked (example div with table child with *ngFor directive). Initial height will not be full element height so directive will "cut" element view in half. It is simply fixed by adding ngAfterViewChecked() hook :)
|
Hey @duki994 |
Hello, any update on this? |
Hi, there is a pure css workaround to the collapse animation. I'm using something like this:
|
Bug description or feature request:
I have put together an example of using the AnimationBuilder to handle the collapse animations. by not relying on the classes from the original collapse methods from bootstrap and just using the builder to handle the start, transition and complete i was able to reproduce the collapse animations.
Plunker/StackBlitz that reproduces the issue:
StackBlitz: https://stackblitz.com/edit/ngx-bootstrap-collapse
Plunker: https://embed.plnkr.co/IdSJviSEK8X2jjxJNI0o/
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: Latest
Angular: 5.0.0
Bootstrap: 4.0.0
The text was updated successfully, but these errors were encountered: