Skip to content

Commit

Permalink
fix: rerender table trigger table-body collapses (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 authored Aug 30, 2023
1 parent 9c19adf commit 719d285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Body/ExpandedRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function ExpandedRow(props: ExpandedRowProps) {
// Cache render node
let contentNode = children;

if (isEmpty ? horizonScroll : fixColumn) {
if (isEmpty ? horizonScroll && componentWidth : fixColumn) {
contentNode = (
<div
style={{
Expand All @@ -51,7 +51,7 @@ function ExpandedRow(props: ExpandedRowProps) {
}}
className={`${prefixCls}-expanded-row-fixed`}
>
{componentWidth !== 0 && contentNode}
{contentNode}
</div>
);
}
Expand Down

1 comment on commit 719d285

@vercel
Copy link

@vercel vercel bot commented on 719d285 Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

table – ./

table-react-component.vercel.app
table-git-master-react-component.vercel.app

Please sign in to comment.