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
Expandable table's animation is lagging #15491
Comments
I am seeing the same behaviour (animation is not smooth) even on the angular demo page: https://material.angular.io/components/table/examples. Closing the expanded row is smooth though. |
I have the same issue on Expansion Panel but my case is on Ionic 4 framework. I tested on the local web browser and it is ok and very smooth. However i try to run on real android device, it is very lag. Hope there will be a solution for this issue |
Removing "display: none" from the "collapsed" animation state in the Component seems to fix the problem. |
I too could fix this phenomenon the way @acorbellini described. |
I encountered the same issue. Compare "Table with expandable rows" example in https://material.angular.io/components/table/examples (expanding rows is smooth), with its own official Stackblitz which uses updated dependencies https://stackblitz.com/angular/drlaxdpogep?file=app%2Ftable-expandable-rows-example.ts (expanding rows is not smooth). @acorbellini's workaround worked for me, thanks! |
@acorbellini and @anisabboud Tried your solution, but then whole table gets crappy after 1 expansion :/ |
While |
Have been running into this issue as well. I followed https://material.angular.io/components/table/examples exactly and it fixed it. I was using |
What is the expected behavior?
Animation works well without any lagging when I open the (expandable) table's row.
What is the current behavior?
When I try to open the row clicking on it, it is not animating, but it is lagging.
(When I close the row clicking on it again, animation works very well.)
What are the steps to reproduce?
https://stackblitz.com/edit/angular-sbj26m
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/material": "7.3.4",
"@angular/cdk": "7.3.4",
"@angular/core": "7.2.9",
The text was updated successfully, but these errors were encountered: