Skip to content

Commit 39c1d99

Browse files
committed
undo accidental changes to cdktable's ngAfterContentChecked hook
1 parent a6aa72a commit 39c1d99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdk/table/table.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,10 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
500500
// connection has already been made.
501501
if (this.dataSource && this._rowDefs.length > 0 && !this._renderChangeSubscription) {
502502
this._observeRenderChanges();
503+
} else if (stickyColumnStyleUpdateNeeded) {
504+
// In the above case, _observeRenderChanges will result in updateStickyColumnStyles being
505+
// called when it row data arrives. Otherwise, we need to call it proactively.
506+
this.updateStickyColumnStyles();
503507
}
504508

505509
this._checkStickyStates();

0 commit comments

Comments
 (0)