Skip to content

Commit 8e73f64

Browse files
committed
Pass isExpanded unconditionally
1 parent cf22798 commit 8e73f64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/table/src/Row/InternalRowWithRT.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ const InternalRowWithRT = <T extends LGRowData>({
3535

3636
const isExpandable = row.getCanExpand();
3737
const depth = row.depth;
38-
const hasSubRows = row.subRows.length > 0;
3938

4039
const contextValues = useMemo(() => {
4140
return {
@@ -53,7 +52,7 @@ const InternalRowWithRT = <T extends LGRowData>({
5352
className={getRowWithRTStyles({
5453
className,
5554
isDisabled: disabled,
56-
isExpanded: (isExpanded && hasSubRows) || isParentExpanded,
55+
isExpanded: isExpanded || isParentExpanded,
5756
isOddVSRow,
5857
isSelected,
5958
isVirtualRow: !!virtualRow,

0 commit comments

Comments
 (0)