Skip to content

Commit

Permalink
fix(module:table): add missing import to nz-table-inner-scroll (#8328)
Browse files Browse the repository at this point in the history
`NzTableInnerScrollComponent` was missing a crucial import, which was
`NzTbodyComponent`. The absence of this import caused tables with
virtual scrolling to have broken styles, because `ant-table-tbody` class
would not get applied to the `tbody` component.
  • Loading branch information
behdi committed Jan 17, 2024
1 parent e428083 commit 936317e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/table/src/table/table-inner-scroll.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { NzResizeService } from 'ng-zorro-antd/core/services';
import { NzSafeAny } from 'ng-zorro-antd/core/types';

import { NzTableContentComponent } from './table-content.component';
import { NzTbodyComponent } from './tbody.component';

@Component({
selector: 'nz-table-inner-scroll',
Expand Down Expand Up @@ -86,7 +87,7 @@ import { NzTableContentComponent } from './table-content.component';
</div>
`,
host: { class: 'ant-table-container' },
imports: [NzTableContentComponent, NgIf, NgStyle, ScrollingModule, NgTemplateOutlet],
imports: [NzTableContentComponent, NgIf, NgStyle, ScrollingModule, NgTemplateOutlet, NzTbodyComponent],
standalone: true
})
export class NzTableInnerScrollComponent<T> implements OnChanges, AfterViewInit, OnDestroy {
Expand Down

0 comments on commit 936317e

Please sign in to comment.