Skip to content

Commit c5f715c

Browse files
committed
fix(cdk): virtual table now correctly rerenders after setting sort types manually multiple times
1 parent 173710e commit c5f715c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

libs/cdk/virtual-table/table-builder.component.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,8 @@ export class TableBuilder<T>
372372
this.rendering = true;
373373
const columnList: string[] = this.generateDisplayedColumns();
374374

375-
if (this.sortable.notEmpty) {
376-
this.sortAndFilter().then((): void => {
377-
this.syncDrawColumns(columnList);
378-
this.emitRendered();
379-
});
380-
} else {
381-
this.syncDrawColumns(columnList);
382-
this.emitRendered();
383-
}
375+
this.syncDrawColumns(columnList);
376+
this.emitRendered();
384377
}
385378

386379
public toggleColumnVisibility(key?: Nullable<string>): void {

0 commit comments

Comments
 (0)