We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7078e65 commit f1c4173Copy full SHA for f1c4173
src/cdk/table/table.ts
@@ -1085,7 +1085,12 @@ export class CdkTable<T>
1085
* re-render that section.
1086
*/
1087
private _renderUpdatedColumns(): boolean {
1088
- const columnsDiffReducer = (acc: boolean, def: BaseRowDef) => acc || !!def.getColumnsDiff();
+ const columnsDiffReducer = (acc: boolean, def: BaseRowDef) => {
1089
+ // The differ should be run for every column, even if `acc` is already
1090
+ // true (see #29922)
1091
+ const diff = !!def.getColumnsDiff();
1092
+ return acc || diff;
1093
+ };
1094
1095
// Force re-render data rows if the list of column definitions have changed.
1096
const dataColumnsChanged = this._rowDefs.reduce(columnsDiffReducer, false);
0 commit comments