Skip to content

Commit

Permalink
fix: virtual list prefixCls not working (#47639)
Browse files Browse the repository at this point in the history
* fix: virtual list prefixCls not working

* update test case
  • Loading branch information
yoyo837 committed Feb 29, 2024
1 parent 183746a commit 2156ed4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions components/table/__tests__/Table.virtual.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ describe('Table.Virtual', () => {
'.ant-table-wrapper .ant-table-tbody-virtual .ant-table-row:not(tr)',
),
).toHaveLength(1);
expect(container.querySelectorAll('.rc-virtual-list-holder .ant-table-cell')).toHaveLength(1);
expect(container.querySelector('.rc-virtual-list-holder .ant-table-cell')?.textContent).toEqual(
'bamboo',
);
expect(
container.querySelectorAll('.ant-table-tbody-virtual-holder .ant-table-cell'),
).toHaveLength(1);
expect(
container.querySelector('.ant-table-tbody-virtual-holder .ant-table-cell')?.textContent,
).toEqual('bamboo');
});

// warning from `rc-table`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"rc-slider": "~10.5.0",
"rc-steps": "~6.0.1",
"rc-switch": "~4.1.0",
"rc-table": "~7.41.0",
"rc-table": "~7.42.0",
"rc-tabs": "~14.0.0",
"rc-textarea": "~1.6.3",
"rc-tooltip": "~6.1.3",
Expand Down

0 comments on commit 2156ed4

Please sign in to comment.