Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 27828f6

Browse files
Merge pull request #12 from hypertrace/clear-table-state-on-data-change
fix: clear table state on data source change
2 parents 858bd9f + 5ea6efd commit 27828f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/components/src/table/table.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export class TableComponent
240240

241241
if (this.dataSource && changes.data) {
242242
// The dataSource changes on refresh. Only reassign if already initialized (this.dataSource !== undefined)
243+
this.rowStateSubject.next(undefined);
243244
this.dataSource = this.buildDataSource();
244245
}
245246
}

0 commit comments

Comments
 (0)