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
mat-expansion-panel re-renders multiple times in a very simple case (no animation, OnPush). #14952
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/expansionperfThis issue is related to performance
mat-expansion-panel updates (renders) exactly once when there is no reason to do it multiple times.
What is the current behavior?
mat-expansion-panel renders at least 2 times ([@.disabled]="true"+ ChangeDetectionStrategy.OnPush)
or even more times if animation is enabled (default) and change detection mode is Default.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
7.2.1, Chrome 71
Is there anything else we should know?
It is very important not to have "unexpected" behavior (multiple rendering) because it affects performance metrics. If multiple rendering is "expected" I would suggest to mention about it in docs.
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/expansionperfThis issue is related to performance
Activity
josephperrott commentedon Feb 19, 2019
It looks like the expansion panel does not rerender entirely multiple times, though change detection seems to be run multiple times unnecessarily.
snibbo commentedon Jan 15, 2024
Is there any workaround? My panel is jumping up and down :(
fix(material/expansion): switch away from animations module
fix(material/expansion): switch away from animations module
fix(material/expansion): switch away from animations module (#30119)
fix(material/expansion): switch away from animations module (angular#…
angular-automatic-lock-bot commentedon Jan 5, 2025
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.