You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(mat-sort-header): performance & change detection issue with the whole table #19441
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/sortperfThis issue is related to performance
See that if you hover mat-sort-header (not clicking it, just hover), the whole table will be rendered again and again for nothing (even if you leave the sort header).
Expected Behavior
If I have a complex page with Material table, I would not expect performance issues because of re-rendering the whole table on hovering mat-sort-header. Table's data definetely should not connect to mat-sort-header on hover event by default.
changed the title [-]bug(mat-sort-header): performance & change detection issue[/-][+]bug(mat-sort-header): performance & change detection issue with the whole table[/+]on May 25, 2020
If I enable paint flashing, I do not see the entire table flashing green when hovering over the sort headers. Can you confirm that you see the same thing?
If I enable paint flashing, I do not see the entire table flashing green when hovering over the sort headers. Can you confirm that you see the same thing?
Unfortunately I can't check it, because it does not load in... "Starting dev server"
Isn't this the same as the mat-tooltip issue, where it was ultimately the cdk-overlay that's being re-drawn but because it covers the whole table it appears as if it's the table itself?
I don't see any paint flashing issues either and as mentioned above, the multiple change detections are because we manage the arrow animations inside the NgZone which fires off several events. We should look into doing something similar to #19432 for the sort header, but I suspect that it'll be more difficult since the animation is more complicated.
Just experienced the same and saw this github issue. This also breaks animations of e.g. charts which destroys the look and feel of my page. A solution is really much appreciated. Ofcourse I know you guys have a lot to do.
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/sortperfThis issue is related to performance
Activity
[-]bug([mat-header]): [TITLE][/-][+]bug(mat-sort-header): performance & change detection issue[/+][-]bug(mat-sort-header): performance & change detection issue[/-][+]bug(mat-sort-header): performance & change detection issue with the whole table[/+]andrewseguin commentedon May 26, 2020
Here is the stackblitz example as a separate site: https://oemlkyybkmp.angular.stackblitz.io/
If I enable paint flashing, I do not see the entire table flashing green when hovering over the sort headers. Can you confirm that you see the same thing?
woteska commentedon May 30, 2020
Unfortunately I can't check it, because it does not load in... "Starting dev server"
wesselvdv commentedon Jun 30, 2020
Isn't this the same as the mat-tooltip issue, where it was ultimately the cdk-overlay that's being re-drawn but because it covers the whole table it appears as if it's the table itself?
crisbeto commentedon Aug 16, 2020
I don't see any paint flashing issues either and as mentioned above, the multiple change detections are because we manage the arrow animations inside the
NgZonewhich fires off several events. We should look into doing something similar to #19432 for the sort header, but I suspect that it'll be more difficult since the animation is more complicated.AshotAleqs commentedon Jan 21, 2021
here is the reproductio nexample of this bug:
https://stackblitz.com/edit/stackoverflow-table-example?file=src%2Fapp%2Ftable-basic-example.html
I have opened the issue I didn't saw this one.
#21667
MeMeMax commentedon Sep 6, 2022
Just experienced the same and saw this github issue. This also breaks animations of e.g. charts which destroys the look and feel of my page. A solution is really much appreciated. Ofcourse I know you guys have a lot to do.
fix(material/sort): simplify animations
fix(material/sort): simplify animations
fix(material/sort): simplify animations (#30057)
fix(material/sort): simplify animations (angular#30057)
angular-automatic-lock-bot commentedon Dec 28, 2024
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.