Skip to content

Commit f055715

Browse files
authored
fix: getParentRow should search all row model rows (#5121)
1 parent f8d5d43 commit f055715

File tree

1 file changed

+1
-1
lines changed
  • packages/table-core/src/core

1 file changed

+1
-1
lines changed

packages/table-core/src/core/row.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const createRow = <TData extends RowData>(
154154
row.getValue(columnId) ?? table.options.renderFallbackValue,
155155
subRows: subRows ?? [],
156156
getLeafRows: () => flattenBy(row.subRows, d => d.subRows),
157-
getParentRow: () => (row.parentId ? table.getRow(row.parentId) : undefined),
157+
getParentRow: () => (row.parentId ? table.getRow(row.parentId, true) : undefined),
158158
getParentRows: () => {
159159
let parentRows: Row<TData>[] = []
160160
let currentRow = row

0 commit comments

Comments
 (0)