Skip to content

Commit 719d285

Browse files
authored
fix: rerender table trigger table-body collapses (#1016)
1 parent 9c19adf commit 719d285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Body/ExpandedRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function ExpandedRow(props: ExpandedRowProps) {
4040
// Cache render node
4141
let contentNode = children;
4242

43-
if (isEmpty ? horizonScroll : fixColumn) {
43+
if (isEmpty ? horizonScroll && componentWidth : fixColumn) {
4444
contentNode = (
4545
<div
4646
style={{
@@ -51,7 +51,7 @@ function ExpandedRow(props: ExpandedRowProps) {
5151
}}
5252
className={`${prefixCls}-expanded-row-fixed`}
5353
>
54-
{componentWidth !== 0 && contentNode}
54+
{contentNode}
5555
</div>
5656
);
5757
}

0 commit comments

Comments
 (0)