Skip to content

Commit 80e86cd

Browse files
wilsonafc163
authored andcommitted
fix(tableRow): 修复tableRow某些情况下rowRef为null时, saveRef会引发页面crash
1 parent 742f06e commit 80e86cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class TableRow<ValueType> extends React.Component<TableRowProps<ValueType>, Tabl
178178

179179
const { isAnyColumnsFixed, fixed, expandedRow, ancestorKeys } = this.props;
180180

181-
if (!isAnyColumnsFixed) {
181+
if (!isAnyColumnsFixed || !this.rowRef) {
182182
return;
183183
}
184184

0 commit comments

Comments
 (0)